DecimalTextFormatter constructor
DecimalTextFormatter({})
Implementation
DecimalTextFormatter({
required this.precision,
this.decimalSeparator = ',',
this.thousandSeparator = '.',
}) : allow = precision > 0
? RegExp('[-0-9$decimalSeparator$thousandSeparator]')
: RegExp('[-0-9$thousandSeparator]');