currency property

String? get currency

The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB — see the Current currency & funds code list. There is no default value; if the style is "currency", the currency property must be provided. It is only used when [Style] has the value "currency".

Implementation

_i2.String? get currency => _i5.getProperty(
      this,
      'currency',
    );
set currency (String? value)

Implementation

set currency(_i2.String? value) {
  _i5.setProperty(
    this,
    'currency',
    value ?? _i4.undefined,
  );
}