right property

R right

Get Right value, may throw an exception when the value is Left

Implementation

R get right => this.fold<R>(
    (left) => throw Exception(
        'Illegal use. You should check isRight before calling'),
    (value) => value);