Result<T, E> class
Constructors
- Result.error(E? errorMessage)
- Result.success(T? value)
Properties
- errorMessage → E?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSuccess → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open<
R> (R onSuccess(T? onSuccess), R onError(E? onError)) → R -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited