UnitCountPattern class Units

Localized unit information for single length.

Constructors

UnitCountPattern(String _locale, String displayName, {String? one, required String other, String? zero, String? two, String? few, String? many})
const

Properties

displayName → String
Localized display name of the unit.
final
few → String?
Localized pattern for a few units.
final
hashCode → int
The hash code for this object.
no setterinherited
many → String?
Localized pattern for many units.
final
one → String?
Localized pattern for 1 unit.
final
other → String
Localized pattern for an other amount of units.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
two → String?
Localized pattern for 2 units.
final
zero → String?
Localized pattern for 0 units.
final

Methods

call(num howMany, {NumberFormat? numberFormat, String? placeholder}) → String
format(num howMany, {NumberFormat? numberFormat, String? placeholder}) → String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString([num? howMany]) → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited