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
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
format(dynamic amount, CurrencyFormat settings, {bool compact = false, int decimal = 2, dynamic showThousandSeparator = true, dynamic enforceDecimals = false})
→ String
-
Format
amount
using the settings
of a currency.
-
parse(String input, CurrencyFormat settings)
→ num
-
Parse a formatted string to a number.
Constants
-
majors
→ const Map<String, CurrencyFormat>
-
Map that contains the
CurrencyFormat
from major currencies.
They can be accessed using their abbreviation. e.g. majors['usd']
.
-
majorsList
→ const List<CurrencyFormat>
-
List that contains the
CurrencyFormat
from major currencies.
-
majorSymbols
→ const Map<String, String>
-
Map that contains the symbols from major currencies.
They can be accessed using their abbreviation. e.g.
majorSymbols['usd']
.