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})
locale Locales are specified either with a specifier string that follows the BCP-47 convention.
useNative The flag used to determine whether to use the native script settings for formatting the numbers.
type The formatter type. Valid values: "number", "currency", "percentage". Default: "number".
currency ISO 4217 currency code for "currency" type. Required for currency formatting.
maxFractionDigits Maximum digits after the decimal. -1 means unlimited, 0 means no fractional digits.
minFractionDigits Minimum digits after the decimal. Pads with zeros if necessary.
significantDigits Maximum significant digits, applied before and after the decimal.
roundingMode Governs rounding behavior. Examples: "up", "down", "halfup", "halfeven".
style Formatting 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