formatNumber static method

String formatNumber(
  1. double number, {
  2. dynamic decimalPattern = 'id_ID',
})

Implementation

static String formatNumber(double number, {decimalPattern = 'id_ID'}) {
  final f = new NumberFormat.decimalPattern(defaultDecimalPattern ?? decimalPattern);
  return f.format(number);
}