PolyFormatter.compactSimpleCurrency constructor
PolyFormatter.compactSimpleCurrency({})
A number format for compact currency representations, e.g. "$1.2M" instead
of "$1,200,000", and which will automatically determine a currency symbol
based on the currency name or the locale. See
NumberFormat.simpleCurrency
.
Implementation
factory PolyFormatter.compactSimpleCurrency(
{String? locale = 'en',
String? name = poly,
int? decimalDigits = 9}) =>
PolyFormatter(
formatter: NumberFormat.compactSimpleCurrency(
locale: locale, name: name, decimalDigits: decimalDigits));