MoneyFormatterSettings class
MoneyFormatterSettings instance.
This instance is used as a configurator for the FlutterMoneyFormatter
instance.
You can change the output of FlutterMoneyFormatter
through this instance.
Constructors
- MoneyFormatterSettings({String symbol = "\$", String thousandSeparator = ',', String decimalSeparator = '.', String symbolAndNumberSeparator = "", int fractionDigits = 2, CompactFormatType compactFormatType = CompactFormatType.short})
- Init instance of MoneyFormatterSettings
Properties
- compactFormatType ↔ CompactFormatType
-
Compact format type, for example using 'million' or 'M'
getter/setter pair
- decimalSeparator ↔ String
-
The character that will be used as decimal separator on formatted output, default value is '.' (dot)
getter/setter pair
- fractionDigits ↔ int
-
The fraction digits that will be used on formatted output, default value is 2.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- symbol ↔ String
-
The symbol that will be used on formatted output, default value is $ (Dollar Sign)
getter/setter pair
- symbolAndNumberSeparator ↔ String
-
The character that will be used as separator between the numbers and the symbol.
getter/setter pair
- thousandSeparator ↔ String
-
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