toEither<L> method
Either<L, T>
toEither<
L>( - 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);