NumberFormatOptions class
Number formatting functionality of the browser.
Constructors
- NumberFormatOptions.compact({CompactDisplay compactDisplay = CompactDisplay.short, FormatStyle style = const DecimalStyle(), LocaleMatcher localeMatcher = LocaleMatcher.bestfit, SignDisplay signDisplay = SignDisplay.auto, Grouping useGrouping = Grouping.auto, String? numberingSystem, RoundingMode roundingMode = RoundingMode.halfExpand, TrailingZeroDisplay trailingZeroDisplay = TrailingZeroDisplay.auto, int minimumIntegerDigits = 1, Digits? digits})
-
factory
- NumberFormatOptions.currency({required String currency, CurrencyDisplay currencyDisplay = CurrencyDisplay.symbol, CurrencySign currencySign = CurrencySign.standard, LocaleMatcher localeMatcher = LocaleMatcher.bestfit, SignDisplay signDisplay = SignDisplay.auto, Notation notation = const StandardNotation(), Grouping useGrouping = Grouping.auto, String? numberingSystem, RoundingMode roundingMode = RoundingMode.halfExpand, TrailingZeroDisplay trailingZeroDisplay = TrailingZeroDisplay.auto, int minimumIntegerDigits = 1, Digits? digits})
-
factory
- NumberFormatOptions.custom({FormatStyle style = const DecimalStyle(), String? currency, LocaleMatcher localeMatcher = LocaleMatcher.bestfit, SignDisplay signDisplay = SignDisplay.auto, Notation notation = const StandardNotation(), Grouping useGrouping = Grouping.auto, String? numberingSystem, RoundingMode roundingMode = RoundingMode.halfExpand, TrailingZeroDisplay trailingZeroDisplay = TrailingZeroDisplay.auto, int minimumIntegerDigits = 1, Digits? digits})
- NumberFormatOptions.percent({LocaleMatcher localeMatcher = LocaleMatcher.bestfit, SignDisplay signDisplay = SignDisplay.auto, Notation notation = const StandardNotation(), Grouping useGrouping = Grouping.auto, String? numberingSystem, RoundingMode roundingMode = RoundingMode.halfExpand, TrailingZeroDisplay trailingZeroDisplay = TrailingZeroDisplay.auto, int minimumIntegerDigits = 1, Digits? digits})
-
factory
- NumberFormatOptions.unit({required Unit unit, UnitDisplay unitDisplay = UnitDisplay.short, LocaleMatcher localeMatcher = LocaleMatcher.bestfit, SignDisplay signDisplay = SignDisplay.auto, Notation notation = const StandardNotation(), Grouping useGrouping = Grouping.auto, String? numberingSystem, RoundingMode roundingMode = RoundingMode.halfExpand, TrailingZeroDisplay trailingZeroDisplay = TrailingZeroDisplay.auto, int minimumIntegerDigits = 1, Digits? digits})
-
factory
Properties
- currency → String?
-
final
- digits → Digits?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- localeMatcher → LocaleMatcher
-
final
- minimumIntegerDigits → int
-
final
- notation → Notation
-
final
- numberingSystem → String?
-
final
- roundingMode → RoundingMode
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signDisplay → SignDisplay
-
final
- style → FormatStyle
-
final
- trailingZeroDisplay → TrailingZeroDisplay
-
final
- useGrouping → Grouping
-
final
Methods
-
copyWith(
{FormatStyle? style, String? currency, LocaleMatcher? localeMatcher, SignDisplay? signDisplay, Notation? notation, Grouping? useGrouping, String? numberingSystem, RoundingMode? roundingMode, TrailingZeroDisplay? trailingZeroDisplay, int? minimumIntegerDigits, Digits? digits}) → NumberFormatOptions -
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
Static Methods
-
getDigits(
FormatStyle style, Digits? digits) → Digits?