formatAsSimpleCurrency method

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

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

Implementation

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