DecimalValidator constructor
DecimalValidator(})
Implementation
DecimalValidator(
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,
),
]);