compactSimpleCurrency method

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

format number with intl compactSimpleCurrency format

Implementation

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