mapLeftAsync<TL> method

  1. @override
Future<Either<TL, R>> mapLeftAsync<TL>(
  1. FutureOr<TL> fnL(
    1. L left
    )
)
override

Transform value of Left

Implementation

@override
Future<Either<TL, R>> mapLeftAsync<TL>(FutureOr<TL> Function(L left) fnL) {
  return Future.value(fnL(value)).then((value) => Left<TL, R>(value));
}