DecimalFormatter class final

An ICU4X Decimal Format object, capable of formatting a Decimal as a string.

See the Rust documentation for DecimalFormatter for more information.

Implemented types

Constructors

DecimalFormatter.withGroupingStrategy(Locale locale, [DecimalGroupingStrategy? groupingStrategy])
Creates a new DecimalFormatter, using compiled data
factory
DecimalFormatter.withGroupingStrategyAndProvider(DataProvider provider, Locale locale, [DecimalGroupingStrategy? groupingStrategy])
Creates a new DecimalFormatter, using a particular data source.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

format(Decimal value) String
Formats a Decimal to a string.
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

createWithManualData(String plusSignPrefix, String plusSignSuffix, String minusSignPrefix, String minusSignSuffix, String decimalSeparator, String groupingSeparator, int primaryGroupSize, int secondaryGroupSize, int minGroupSize, List<Rune> digits, [DecimalGroupingStrategy? groupingStrategy]) DecimalFormatter
Creates a new DecimalFormatter from preconstructed locale data.