formatAsSimpleCurrency method

String formatAsSimpleCurrency({
  1. String? locale,
  2. String? name,
  3. int? decimalDigits,
})

Formats the number as simple currency with the given locale and name.

Implementation

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