flatMap<W> method

AsyncEitherExtended<L, W> flatMap<W>(
  1. FutureOr<Either<L, W>> fn(
    1. R r
    )
)

Implementation

AsyncEitherExtended<L, W> flatMap<W>(
  FutureOr<Either<L, W>> Function(R r) fn,
) => then(
  (result) =>
      result.fold(LeftExtended.new, (r) async => await fn(r).extend()),
);