MoneyFormat class
Locale-aware formatting and strict parsing of Money.
Only the separators differ between supported locales: id groups with
. and uses , for decimals, en does the opposite.
- Annotations
Constructors
- MoneyFormat(String languageCode)
-
const
Properties
- decimalSeparator → String
-
no setter
- groupSeparator → String
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- languageCode → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compact(
Money money) → String - Short chart-axis notation. Never use for an amount a customer pays or confirms.
-
format(
Money money, {bool withSymbol = true}) → String -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
String input, String currency) → AmountParseResult - Parses typed or pasted text into Money.
-
spoken(
Money money) → String - Plain digits for screen readers, e.g. "100000 IDR".
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited