ParseResult<T> class
sealed
- Implementers
- Available extensions
- Annotations
Constructors
-
ParseResult.failure({required Iterable<
String> errors}) -
constfactory
- ParseResult.fromNullable(T? parsed, {required String errorMessage})
-
factory
- ParseResult.success({required T result})
-
constfactory
Properties
-
errors
→ Iterable<
String> -
Available on ParseResult<
T> , provided by the ParseResultX extensionno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- orNull → T?
-
Available on ParseResult<
T> , provided by the ParseResultX extensionno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> ({required TResult success(ParseSuccess< T> value), required TResult failure(ParseFailure<T> value)}) → TResult -
inherited
-
mapOrNull<
TResult extends Object?> ({TResult? success(ParseSuccess< T> value)?, TResult? failure(ParseFailure<T> value)?}) → TResult? -
inherited
-
maybeMap<
TResult extends Object?> ({TResult success(ParseSuccess< T> value)?, TResult failure(ParseFailure<T> value)?, required TResult orElse()}) → TResult -
inherited
-
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