rightOrNull method
R?
rightOrNull()
Returns the value of Right if available. Otherwise, null is returned.
Implementation
R? rightOrNull() => fold((l) => null, (r) => r);
Returns the value of Right if available. Otherwise, null is returned.
R? rightOrNull() => fold((l) => null, (r) => r);