Result<T> class
sealed
A generic Result class used for converting a future to a stream by
AsResultStream.asResultStream
.
Represents the following states
- Loading
- Success
- Error
- Implementers
- Available Extensions
Constructors
- Result.error(Exception error, {String tag = ''})
-
Error event of a stream.
factory
- Result.loading({String tag = ''})
-
The loading state of the stream.
factory
- Result.success(T data, {String tag = ''})
-
The success event of a stream.
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited