right<A, B> function

TaskEither<A, B> right<A, B>(
  1. B value
)

Create a Right value wrapped in a TaskEither.

Example:

final successTask = right<String, int>(10);

Implementation

TaskEither<A, B> right<A, B>(B value) {
  return TaskEither(() => Future.value(e.Right<A, B>(value)));
}