PluralizationOptions class
Configuration for pluralization behavior.
Constructors
- PluralizationOptions({PluralizationRule rule = PluralizationRule.english, bool includeValue = true, bool useCommaSeparator = false, int precision = 2, String? locale})
-
Creates pluralization options.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- includeValue → bool
-
Whether to include the numeric value in output.
final
- locale → String?
-
Optional locale for locale-specific formatting.
final
- precision → int
-
Decimal precision for non-integer values.
final
- rule → PluralizationRule
-
The pluralization rule to use.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- useCommaSeparator → bool
-
Whether to use comma separators for large numbers.
final
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
- defaults → const PluralizationOptions
- Default English pluralization options.
- eastAsian → const PluralizationOptions
- East Asian options (no pluralization).
- french → const PluralizationOptions
- French pluralization options.