CompareValidator constructor

const CompareValidator(
  1. String controlName,
  2. String compareControlName,
  3. CompareOption compareOption, {
  4. 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();