IValidationRule class abstract
Interface for validation rules.
Validation rule can validate one or multiple values against complex rules like: value is in range, one property is less than another property, enforce enumerated values and more.
This interface allows to implement custom rules.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
String? path, Schema schema, dynamic value, List< ValidationResult> results) → void - Validates a given value against this rule.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited