Result<T> class sealed

A generic Result class used for converting a future to a stream by AsResultStream.asResultStream.

Represents the following states

  1. Loading
  2. Success
  3. 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

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tag String
TODO: add public documentation
no setter

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