ValidationError class
Represents a validation error with detailed information.
Constructors
- ValidationError({required String message, String? field, required ValidationErrorType type, String? details})
-
Creates a new ValidationError instance.
const
Properties
- details → String?
-
Additional context or details about the error (optional).
final
- field → String?
-
The field or property that failed validation (optional).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- message → String
-
The error message describing what went wrong.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → ValidationErrorType
-
The type of validation error.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override