Validator<T> class abstract

Validates a given value. Custom validators should implement this class so that they can interface with Former internals.

Implementers

Constructors

Validator()

Properties

error String
The error message as a result of a failed validation. This is empty if the previous validation is passed.
no setter
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(T? value) bool
Validates value. Returns whether the value is valid.

Operators

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