CompareValidator constructor
const
CompareValidator(
- String controlName,
- String compareControlName,
- CompareOption compareOption, {
- bool allowNull = false,
Constructs an instance of the validator.
The arguments controlName, compareControlName and compareOption
must not be null.
allowNull (optional): skip this validation if one of the controls has
null value. Defaults to false (report an error in case of null).
Implementation
const CompareValidator(
this.controlName,
this.compareControlName,
this.compareOption, {
this.allowNull = false,
}) : super();