OrValidator<I> class

Group validator. Allows to validate value against multiple validators.

Stop execution as soon as first Validator validation succeeded.

Unlike AndValidator, this validator will be valid if at least one child validator is valid. If all child validators are invalid - error message from the last validator will be provided

All Validator's should be designed to validate same value type.

Implemented types

Constructors

OrValidator(Iterable<Validator<I>> validators)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validators Iterable<Validator<I>>
final

Methods

call(I? value) String?
Invoke validation
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited