chainEither<C> method
Null safety
- Either<
L, C> f(- R r
Chain a function that takes the current value R
inside this TaskEither
and returns Either.
Similar to flatMap
, but f
returns Either instead of TaskEither.
Implementation
TaskEither<L, C> chainEither<C>(Either<L, C> Function(R r) f) => flatMap(
(r) => f(r).toTaskEither(),
);