toTaskEither method

  1. @override
TaskEither<L, R> toTaskEither()
override

Convert this Either to a TaskEither.

Used to convert a sync context (Either) to an async context (TaskEither). You should convert Either to TaskEither every time you need to call an async (Future) function based on the value in Either.

Implementation

@override
TaskEither<L, R> toTaskEither() => TaskEither.of(_value);