converterMoedaParaDouble static method
Converter o valor de uma String com R$
Implementation
static double converterMoedaParaDouble(String valor) {
assert(valor.isNotEmpty);
final value = double.tryParse(
valor.replaceAll('R\$ ', '').replaceAll('.', '').replaceAll(',', '.'));
return value ?? 0;
}