menu
cowpay package
documentation
core/packages/dartz/dartz.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));
cowpay package
documentation
core/packages/dartz/dartz
Option<A>
toEither<B> method
Option class