FieldValidateResult class

A class representing the result of a field validation.

The FieldValidateResult contains information about whether a field is valid, any error messages, and a combined error message for easy access.

Constructors

FieldValidateResult({bool success = false, List<String> errors = const [], String error = ''})
Constructor for FieldValidateResult.

Properties

error String
A combined error message, usually representing the first error.
getter/setter pair
errors List<String>
A list of error messages returned from the validation.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
success bool
Whether the validation was successful.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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