alt method

  1. @override
Either<L, R> alt(
  1. covariant Either<L, R> orElse()
)
override

Return the current Either if it is a Right, otherwise return the result of orElse.

Used to provide an alternative Either in case the current one is Left.

Implementation

@override
Either<L, R> alt(covariant Either<L, R> Function() orElse) => this;