ValidatorOf<T, R> class
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T
-
final
Methods
-
and(
ValidateWithCallback< R> validator) → ValidatorOf<T, R> - check if the value is valid
-
call(
) → bool -
errorMessage(
) → String? - returns the error message if exists
-
errorMessages(
) → List< String> - returns the list of error messages
-
isValid(
) → bool - check is the value is valid
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validateWith<
X> (FieldValidator< T, X> callback(FieldValidator<T, R> )) → ValidatorOf<T, X> - add validator to the current tree
-
withMessages(
ReadyValidationMessagesAr messages) → ValidatorOf< T, R> - replace the messages all the next validations will use the new messages the old messages will be kept in the _prevErrors
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited