onRight method

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

Implementation

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