right property

R? get right

Returns the Right value if present, otherwise null.

Implementation

R? get right => this is Right<L, R> ? (this as Right<L, R>).value : null;