getRight method

  1. @override
R getRight()
override

Returns the Right value if this is a Right, otherwise throws.

Implementation

@override
R getRight() {
  throw StateError('Cannot get a Right value from $this.');
}