toCodeFormat method

String toCodeFormat()

Constructs a string with format "USD 3.14".

Implementation

String toCodeFormat() {
  return '${currency.code} $amount';
}