rightOrNull method

R? rightOrNull()

Returns the value of Right if available. Otherwise, null is returned.

Implementation

R? rightOrNull() => fold((l) => null, (r) => r);