NumberValidator constructor

NumberValidator({
  1. bool allowDecimal = true,
})

Constructs the validator with the option to allow decimal values or restrict to integer only.

Implementation

NumberValidator({
  this.allowDecimal = true,
});