simpleCurrencyFormat method

NumberFormat simpleCurrencyFormat({
  1. String? locale,
  2. int? decimalDigits,
})

Creates a NumberFormat object as simple currency using the string as the currency name, along with the given locale.

Implementation

NumberFormat simpleCurrencyFormat({String? locale, int? decimalDigits}) {
  return NumberFormat.simpleCurrency(
    name: this,
    locale: locale,
    decimalDigits: decimalDigits,
  );
}