ValidationResult class
ValidationResult describes the result of a validation check.
- Annotations
-
- @freezed
Constructors
- ValidationResult({required bool valid, @Default('') String? message})
-
Default constructor
constfactory
-
ValidationResult.fromJson(Map<
String, dynamic> json) -
Unmarshalls json to ValidationResult
factory
Properties
-
copyWith
→ $ValidationResultCopyWith<
ValidationResult> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String?
-
Message is a human readable objection, or empty if valid.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- valid → bool
-
Valid indicates whether the validation was successful or not.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited