format method

  1. @override
String format(
  1. double value
)
override

Implementation

@override
String format(double value) {
  String format = "#,##0";
  for(int i = 0; i < count; i++) {
    if (i == 0) {
      format += ".";
    }
    format += "0";
  }
  return NumberFormat(format).format(value);
}