menu
fpdart package
documentation
fpdart.dart
Left<L, R>
toOption method
toOption method
dark_mode
light_mode
toOption
method
@
override
Option
<
R
>
toOption
(
)
override
Convert this
Either
to a
Option
:
If the
Either
is
Left
, throw away its value and just return
None
If the
Either
is
Right
, return a
Some
containing the value inside
Right
Implementation
@override Option<R> toOption() => Option.none();
fpdart package
documentation
fpdart
Left<L, R>
toOption method
Left class