ILibNumFmtOptions class
Options for configuring the number formatter.
Constructors
- ILibNumFmtOptions({String? locale, String? type, String? currency, int? maxFractionDigits, int? minFractionDigits, int? significantDigits, String? style, String? roundingMode, bool? useNative})
-
localeLocales are specified either with a specifier string that follows the BCP-47 convention.
useNativeThe flag used to determine whether to use the native script settings for formatting the numbers.
typeThe formatter type. Valid values: "number", "currency", "percentage". Default: "number".
currencyISO 4217 currency code for "currency" type. Required for currency formatting.
maxFractionDigitsMaximum digits after the decimal.-1means unlimited,0means no fractional digits.
minFractionDigitsMinimum digits after the decimal. Pads with zeros if necessary.
significantDigitsMaximum significant digits, applied before and after the decimal.
roundingModeGoverns rounding behavior. Examples: "up", "down", "halfup", "halfeven".
styleFormatting style.
For "currency": "common" (symbol) or "iso" (ISO code). For "number": "standard", "scientific", "native", or "nogrouping".
Properties
- currency ↔ String?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- locale ↔ String?
-
getter/setter pair
- maxFractionDigits ↔ int?
-
getter/setter pair
- minFractionDigits ↔ int?
-
getter/setter pair
- roundingMode ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- significantDigits ↔ int?
-
getter/setter pair
- style ↔ String?
-
getter/setter pair
- type ↔ String?
-
getter/setter pair
- useNative ↔ bool?
-
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