swap method

  1. @override
Either<R, L> swap()
override

Swaps the sides of this Either, turning Left into Right and vice versa.

Implementation

@override
Either<R, L> swap() => Right<R, L>(value);