numberFormat method Null safety

String numberFormat(
  1. double numberString,
  2. {String format = "###.0#",
  3. String locale = 'en_US'}
)

Implementation

String numberFormat(double numberString,
    {String format = "###.0#", String locale = 'en_US'}) {
  var f = NumberFormat(format, locale);

  return f.format(numberString);
}