WhenValidator constructor

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

Implementation

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