Result<S, E> class
This can be returned on any operation which may or may not succeed for any defined reason
Constructors
- Result.Error(E error)
-
factory
- Result.Ok(S result)
-
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unrwap(
) → dynamic -
Depending on isOk this will return the value of type
S
or typeE
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited