formatMoney method

String formatMoney(
  1. dynamic value
)

Implementation

String formatMoney(dynamic value) {
  double dValue = parseDouble(value);

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