IOEither<L, R>.Do constructor
IOEither<L, R>.Do (
- DoFunctionIOEither<
L, R> f
Initialize a Do Notation chain.
Implementation
// ignore: non_constant_identifier_names
factory IOEither.Do(DoFunctionIOEither<L, R> f) => IOEither(() {
try {
return Either.of(f(_doAdapter<L>()));
} on _IOEitherThrow<L> catch (e) {
return Either.left(e.value);
}
});