ValidatorWithStaticError<T extends Object?> class
abstract
As its name suggests, this class makes it easier to create a validator which returns a static error message (that does not change based on the data).
- Inheritance
- Implementers
Constructors
- ValidatorWithStaticError(String error)
-
const
Properties
Methods
-
innerValidate(
T? value) → bool - Returns true or false depending on the validation process. This method is then used by the ValidatorWithStaticError.validate method to return a static error if the result is false.
-
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) → String? -
This method should return null if the field is valid, a string corresponding
to the error otherwise.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited