AdaFormattter.compactCurrency constructor

AdaFormattter.compactCurrency({
  1. String? locale = 'en',
  2. String? name = ada,
  3. String? symbol = symbol,
  4. int? decimalDigits = 6,
})

A number format for compact currency representations, e.g. "₳1.2M" instead of "₳1,200,000".

Implementation

factory AdaFormattter.compactCurrency(
        {String? locale = 'en',
        String? name = ada,
        String? symbol = symbol,
        int? decimalDigits = 6}) =>
    AdaFormattter(
        formatter: NumberFormat.compactCurrency(
            locale: locale,
            name: name,
            symbol: symbol,
            decimalDigits: decimalDigits));