DVPluralForms class
The plural forms a message has, in one language.
The CLDR categories, not English's. This used to offer zero/one/other and
select with count == 1, so every catalogue was really an English
catalogue: a French app rendered "0 messages" where French writes "0
message", and Polish -- which needs one, few and many chosen by the last
one or two digits -- could not be written correctly at all.
Constructors
Properties
- few → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- many → String
-
final
- one → String
-
final
- other → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- two → String
-
final
- zero → String
-
An explicit override for "no messages", not a CLDR category in most
languages. Left unset, 0 takes whatever the language's rule says.
final
Methods
-
missingFor(
String locale) → Set< DVPluralCategory> -
The categories
localeneeds that this catalogue does not provide. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
select(
num count, {String locale = 'en'}) → String -
The form for
countinlocale. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited