Currency class Null safety

Constructors

Currency({required String code, required String name, required String symbol, required String? flag, required int number, required int decimalDigits, required String namePlural, required bool symbolOnLeft, required String decimalSeparator, required String thousandsSeparator, required bool spaceBetweenAmountAndSymbol})
Currency.from({required Map<String, dynamic> json})

Properties

code String
The currency code
final
decimalDigits int
The currency decimal digits
final
decimalSeparator String
The decimal separator
final
flag String?
The currency flag code
final
hashCode int
The hash code for this object.
read-onlyinherited
name String
The currency name in English
final
namePlural String
The currency plural name in English
final
number int
The currency number
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
spaceBetweenAmountAndSymbol bool
True if symbol has space with amount
final
symbol String
The currency symbol
final
symbolOnLeft bool
True if symbol is on the Left of the amount
final
thousandsSeparator String
The thousands separator
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited