NewDecimalValidator constructor
NewDecimalValidator(})
Implementation
NewDecimalValidator(
this.precision, {
this.decimalSeparator = ',',
this.thousandSeparator = '.',
}) : assert(
precision >= 0,
'precision must be equals or greater than zero.',
),
super(<TextInputFormatter>[
DecimalTextFormatter(
precision: precision,
decimalSeparator: decimalSeparator,
thousandSeparator: thousandSeparator,
),
]);