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