MessageValidation<S, M> class
- Inheritance
-
- Object
- Validation<
S, M> - MessageValidation
Constructors
-
MessageValidation({M? key, ValidationOutcome onSuccess = ValidationOutcome.proceed, ValidationOutcome onFailure = ValidationOutcome.stopWithMessage, required Validator<
S> validator, required M message}) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → M?
-
finalinherited
- message → M
-
final
- onFailure → ValidationOutcome
-
finalinherited
- onSuccess → ValidationOutcome
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
validator
→ Validator<
S> -
final
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(
S state, List< ValidationState> stateHistory) → ValidationResult<M> -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited