ValidationResult class
Result of a validation operation
Constructors
-
ValidationResult({required bool isValid, required List<
String> issues, List<String> suggestions = const [], Map<String, dynamic> context = const {}}) -
const
-
ValidationResult.failure({required List<
String> issues, List<String> suggestions = const [], Map<String, dynamic> context = const {}}) -
Creates a failed validation result
factory
-
ValidationResult.success({Map<
String, dynamic> context = const {}}) -
Creates a successful validation result
factory
Properties
-
context
→ Map<
String, dynamic> -
Additional context about the validation
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
issues
→ List<
String> -
List of validation issues found
final
- isValid → bool
-
Whether the validation passed
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
suggestions
→ List<
String> -
Suggestions for fixing the issues
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.
inherited