getLeft method

  1. @override
L getLeft()
override

Throws an Exception because this is a Right and does not contain a Left value.

Use getRight if you expect the right value.

Implementation

@override
L getLeft() {
  throw Exception("getLeft() called on Right");
}