PluralCase enum
The CLDR plural categories used to pick the correct plural form of a translation key for a given count.
Not every language uses every category: English only distinguishes one and other, while Arabic uses all six and Russian uses one, few, many and other.
Values
- zero → const PluralCase
-
The form used for zero items in languages that have one (e.g. Arabic).
- one → const PluralCase
-
The singular form (e.g. English
1 song, Russian21 песня). - two → const PluralCase
-
The dual form in languages that have one (e.g. Arabic).
- few → const PluralCase
-
The paucal form (e.g. Russian counts ending in 2-4, except 12-14).
- many → const PluralCase
-
The form for large quantities in languages that distinguish it (e.g. Arabic 11-99, Russian counts ending in 0 or 5-9).
- other → const PluralCase
-
The general plural form; also the fallback when no more specific category matches.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
PluralCase> - A constant List of the values in this enum, in order of their declaration.