menu
os_basecode package
documentation
os_basecode.dart
Option<A>
toEither<B> method
toEither<B> method
dark_mode
light_mode
toEither<
B
>
method
Either
<
B
,
A
>
toEither
<
B
>(
B
ifNone
()
)
Implementation
Either<B, A> toEither<B>(B ifNone()) => fold(() => left(ifNone()), (a) => right(a));
os_basecode package
documentation
os_basecode
Option<A>
toEither<B> method
Option class