simpleCurrency method

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

format number with intl simpleCurrency format

Implementation

String simpleCurrency({
  String? locale,
  String? name,
  int? decimalDigits,
}) {
  if (this == null) return '';
  return NumberFormat.simpleCurrency(
    locale: locale,
    name: name,
    decimalDigits: decimalDigits,
  ).format(this!);
}