PluralTranslator class
Translator for plural values
- Inheritance
-
- Object
- SimpleTranslator
- PluralTranslator
Constructors
- PluralTranslator(Map? decodedMap, String key, String? keySeparator, int pluralValue, {MissingKeyTranslationHandler? missingKeyTranslationHandler})
Properties
- decodedMap → Map?
-
finalinherited
- fallbackKey → String?
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- key ↔ String
-
getter/setter pairinherited
- keySeparator → String?
-
final
- missingKeyTranslationHandler → MissingKeyTranslationHandler?
-
finalinherited
- pluralValue → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
translationParams
↔ Map<
String?, String> ? -
getter/setter pairinherited
Methods
-
calculateSubmap(
String translationKey) → Map -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
plural(
) → String - Return the translation of plural key provided
-
toString(
) → String -
A string representation of this object.
inherited
-
translate(
) → String -
Return the translation of the key provided, otherwise return the fallbackKey (if provided), otherwise return the same key
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- PLURAL_SEPARATOR → const String