toString method
Prints the translations in a human-readable format.
Implementation
@override
String toString() {
String text = "\nTranslations: ---------------\n";
for (MapEntry<TKEY, Map<StringLocale, StringTranslated>> entry
in translationByLocale_ByTranslationKey.entries) {
Map<StringLocale, StringTranslated> translation = entry.value;
for (var translatedString in _translatedStrings(translation)) {
text += " ${translatedString.locale.padRight(5)}"
" | "
"${_prettify(translatedString.key.toString())}\n";
}
text += "-----------------------------\n";
}
return text;
}