toFormatInteger static method
Implementation
static toFormatInteger(String? valor) {
valor = valor!.replaceAll(",", ".");
try {
valor = NumberFormat("#,##0", "pt_BR").format(double.parse(valor));
} catch (e) {
valor = '0';
}
if (valor == 'NaN') return '0';
return valor;
}