getCurrencyStr function
Implementation
String getCurrencyStr(dynamic value, bool showSymbol) {
value ??= 0;
NumberFormat formatter =
NumberFormat.currency(locale: 'pt_BR', symbol: showSymbol ? 'R\$' : '');
return formatter.format(value);
}