toThousandFormat method

String toThousandFormat()

converts number to thousand format e.g convert 1000 to 1,000

Implementation

String toThousandFormat() {
  final formatter = NumberFormat("#,##0");
  return formatter.format(this);
}