formatAsDecimal method

String formatAsDecimal({
  1. String? locale,
})

Formats the number as a decimal with the given locale and decimalDigits.

Implementation

String formatAsDecimal({String? locale}) {
  return NumberFormat.decimalPattern(locale).format(this);
}