toEither<L> method

  1. @override
Either<L, T> toEither<L>(
  1. L onLeft()
)
override

Build an Either from Option.

Return Right when Option is Some, otherwise Left containing the result of calling onLeft.

Implementation

@override
Either<L, T> toEither<L>(L Function() onLeft) => Right(_value);