compactCurrencyBRFormat static method
Ex: 72.123 vira '72,1K' -72.123.123 vira '-72,1M'
Implementation
static String compactCurrencyBRFormat(double valor) =>
NumberFormat.compactCurrency(symbol: '', decimalDigits: 1)
.format(valor)
.replaceFirst('.', ',');