PolyFormatter.compactCurrency constructor

PolyFormatter.compactCurrency({
  1. String? locale = 'en',
  2. String? name = poly,
  3. String? symbol = symbol,
  4. int? decimalDigits = 9,
})

A number format for compact currency representations, e.g. "P1.2M" instead of "P1,200,000".

Implementation

factory PolyFormatter.compactCurrency(
        {String? locale = 'en',
        String? name = poly,
        String? symbol = symbol,
        int? decimalDigits = 9}) =>
    PolyFormatter(
        formatter: NumberFormat.compactCurrency(
            locale: locale,
            name: name,
            symbol: symbol,
            decimalDigits: decimalDigits));