toString method
Returns a string representation of the currency.
The short
parameter determines whether to print only the code
or to
print the full details of the currency. By default, only the code
is
printed.
Implementation
@override
String toString({bool short = true}) => short
? 'Currency(code: "$code")'
: '''Currency(code: "$code", name: "$name", symbol: ${symbol == null ? symbol : '"$symbol"'}, decimalMark: "$decimalMark", thousandsSeparator: "$thousandsSeparator")''';