ILibNumFmtOptions class
Options for configuring ILibNumFmt. Unspecified fields fall back to the locale's defaults.
Constructors
Properties
- currency ↔ String?
-
ISO 4217 currency code (e.g.
'USD'). Required when type is'currency'.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- locale ↔ String?
-
BCP-47 locale string to format for.
getter/setter pair
- maxFractionDigits ↔ int?
-
Maximum digits after the decimal point.
-1means unlimited,0means no fractional part.getter/setter pair - minFractionDigits ↔ int?
-
Minimum digits after the decimal point. Output is zero-padded to reach
this length.
getter/setter pair
- roundingMode ↔ String?
-
Rounding mode:
'up','down','halfup','halfdown','halfeven','halfodd','ceiling', or'floor'. Defaults to the locale's setting.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- significantDigits ↔ int?
-
Maximum total significant digits, applied before and after the decimal.
Clamped to
1..20.getter/setter pair - style ↔ String?
-
Formatting style.
For'number':'standard','scientific','native', or'nogrouping'.
For'currency':'common'(currency symbol) or'iso'(ISO code).getter/setter pair - type ↔ String?
-
Formatter type:
'number'(default),'currency', or'percentage'.getter/setter pair - useNative ↔ bool?
-
Whether to use native-script digits. Defaults to the locale's setting.
getter/setter pair
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