PluralRules class final

See the Rust documentation for PluralRules for more information.

Implemented types

Constructors

PluralRules.cardinal(Locale locale)
Construct an PluralRules for the given locale, for cardinal numbers, using compiled data.
factory
PluralRules.cardinalWithProvider(DataProvider provider, Locale locale)
Construct an PluralRules for the given locale, for cardinal numbers, using a particular data source.
factory
PluralRules.ordinal(Locale locale)
Construct an PluralRules for the given locale, for ordinal numbers, using compiled data.
factory
PluralRules.ordinalWithProvider(DataProvider provider, Locale locale)
Construct an PluralRules for the given locale, for ordinal numbers, using a particular data source.
factory

Properties

categories PluralCategories
Get all of the categories needed in the current locale
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

categoryFor(PluralOperands op) PluralCategory
Get the category for a given number represented as operands
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