TaskEither<A, B> class sealed

TaskEither is a representation of asynchronous computations that can fail. It's a way of combining the concepts of Future and Either.

Example:

final myTaskEither = TaskEither(() => Future.value(Right<String, int>(42)));

Constructors

TaskEither(Future<Either<A, B>> value())
Factory constructor to create a TaskEither from a computation.
factory

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
value Future<Either<A, B>> Function()
Represents the computation that will return an Either<A, B>.
read-only

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