symbolCurrencyFormat method

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

Creates a NumberFormat object as currency using the string as the currency symbol, along with the given locale and optional decimal digits.

Implementation

NumberFormat symbolCurrencyFormat({
  String? locale,
  int decimalDigits = 2,
}) {
  return NumberFormat.currency(
    symbol: this,
    locale: locale,
    decimalDigits: decimalDigits,
  );
}