toString method

  1. @override
String toString()
override

Get a string representation of the message source.

Returns information about loaded locales and message counts.

Implementation

@override
String toString() {
  final localeInfo = _messages.entries
      .map((e) => '${e.key.getLanguageTag()}(${e.value.length})')
      .join(', ');
  return 'ConfigurableMessageSource[default: ${getDefaultLocale().getLanguageTag()}, locales: $localeInfo]';
}