AdaFormattter.compactSimpleCurrency constructor

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

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 AdaFormattter.compactSimpleCurrency(
        {String? locale = 'en',
        String? name = ada,
        int? decimalDigits = 6}) =>
    AdaFormattter(
        formatter: NumberFormat.compactSimpleCurrency(
            locale: locale, name: name, decimalDigits: decimalDigits));