onRightAsync method

Future<Either<L, R>> onRightAsync(
  1. Future<void> block(
    1. R r
    )
)

Implementation

Future<Either<L,R>> onRightAsync(Future<void> Function(R r) block) async{
  var result = toNullable();
  if(result != null){
    await block(result);
  }
  return this;
}