toTaskEither method
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.left(_value);