WhenValidator constructor

WhenValidator(
  1. IValidator condition,
  2. IValidator then,
  3. IValidator otherwise, {
  4. bool nullable = false,
  5. bool optional = false,
})

Implementation

WhenValidator(this.condition, this.then, this.otherwise, {super.nullable, super.optional});