PluralTranslator class

Translator for plural values

Inheritance

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.
read-onlyinherited
key ↔ String
read / writeinherited
keySeparator → String?
final
missingKeyTranslationHandler → MissingKeyTranslationHandler?
finalinherited
pluralValue → int
final
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
translationParams ↔ Map<String?, String>?
read / writeinherited

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
"-"