formatMoney method

String formatMoney(
  1. double value
)

Implementation

String formatMoney(double value) {
  final formatter = new NumberFormat("#,##0.00", "pt_BR");
  String newText = "R\$ " + formatter.format(value);
  return newText;
}