CurrencyValidator constructor

CurrencyValidator({
  1. 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

CurrencyValidator({
  this.allowNegative = true,
});