TranslatedString class
This class represents missing translations. They are recorded in Translations.missingTranslations and Translations.recordMissingKeys.
This class is visible from both i18_exception
and i18_exception_core
packages.
Constructors
- TranslatedString({required String locale, required Object? key})
- Creates a new instance of TranslatedString with the given locale and key.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
comparable(
String defaultLocaleStr) → int Function(TranslatedString, TranslatedString) - First: The TranslatedString in the default locale. Then: The other TranslatedStrings with the same language as the default locale. Then: The other TranslatedStrings, in alphabetic order.