CurrencyValidator constructor
const
CurrencyValidator({
- bool allowNegative = true,
Constructs the validator with the option to allowNegative values or not.
If allowNegative is true
then this will allow negative values and will
error out on negative otherwise.
Implementation
const CurrencyValidator({
this.allowNegative = true,
});