mapLeftAsync<T> method

Future<Either<T, R>> mapLeftAsync<T>(
  1. FutureOr<T> f(
    1. L
    )
)

Implementation

Future<Either<T, R>> mapLeftAsync<T>(FutureOr<T> Function(L) f) => fold(
      (e) async => Either.left(await f(e)),
      (r) async => Either.right(r),
    );