getCurrency method

String? getCurrency()

Returns the ISO 4217 code for the currency that this formatter formats. Returns null if type is not "currency".

Implementation

String? getCurrency() {
  if (_type != 'currency') {
    return null;
  }
  return _currencyCode;
}