menu
func_types package
documentation
func_types.dart
WrapResult extension
WrapResult extension
dark_mode
light_mode
WrapResult<
T
>
extension
on
T
Methods
err
<
OK
>
(
)
→
Result
<
OK
,
T
>
Wraps
this
in a
Result
where
this
is the type of
Result.ERR
.
ok
<
ERR
>
(
)
→
Result
<
T
,
ERR
>
Wraps
this
in a
Result
where
this
is the type of
Result.OK
.
func_types package
documentation
func_types
WrapResult extension
func_types library