right property

R right

Gets the right value if this is an Either.right or throws if this is an Either.left.

Implementation

R get right {
  return fold<R>(_noSuchElementException, (right) => right);
}