static String formatNumber(double n) { var formatter = NumberFormat('#,##0'); var res = formatter.format(n); return "${res}"; }