FormValidationResult class

Constructors

FormValidationResult(dynamic data, [String? attribute])

Properties

attribute ↔ String?
getter/setter pair
data ↔ dynamic
getter/setter pair
errorResponses → List<FormValidationError>
Get the error responses from the validation responses
no setter
hashCode → int
The hash code for this object.
no setterinherited
isValid → bool
Check if all validations are valid
no setter
responses ↔ List<FormValidationResponse>
getter/setter pair
responsesMap → Map<dynamic, Map<FormRule, FormValidationResponse>>
Get a map of responses with the rule as the key and the response as the value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

errorMessages() → List<String>
Get the error messages from the validation responses
getErrorMessages() → List<String>
Get all error messages from the validation responses.
getErrorRules() → List<FormRule>
Get all error rules from the validation responses.
getFirstErrorMessage() → String?
Get the error message for the validation failure.
getFirstErrorRule() → FormRule?
Get the first error rule from the validation responses.
getRules() → List<FormRule>
Get all rules from the validation responses.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
validatedData() → List
Get the validated data from the validation responses

Operators

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