money static method
use to format money fields
TextFormField(
autovalidateMode: AutovalidateMode.onUserInteraction,
inputFormatters: [Mask.money()],
),
Implementation
static TextInputFormatter money({
int decimalLenght = 2,
String decimal = '.',
String fracion = ',',
String moneySymbol = r'R$',
}) {
return MoneyMask(
decimalLenght: decimalLenght,
decimal: decimal,
fracion: fracion,
moneySymbol: moneySymbol,
);
}