mapAsync<TR> method

  1. @override
Future<Either<L, TR>> mapAsync<TR>(
  1. FutureOr<TR> fnR(
    1. R right
    )
)
override

Transform value of Right

Implementation

@override
Future<Either<L, TR>> mapAsync<TR>(FutureOr<TR> Function(R right) fnR) {
  return Future.value(fnR(value)).then((value) => Right<L, TR>(value));
}