static String twoDecimal(String string) { var formatter = NumberFormat('#,##0.##'); var res = formatter.format(double.parse(string)); return res; }