toEither<L> method
Implementation
Either<L, R> toEither<L>(L Function() onLeft) => switch (this) {
Some(value: final value) => Right(value),
None() => Left(onLeft()),
};
Either<L, R> toEither<L>(L Function() onLeft) => switch (this) {
Some(value: final value) => Right(value),
None() => Left(onLeft()),
};