menu
cowpay package
documentation
core/packages/dartz/dartz.dart
TaskBoolOps
ifM<B> method
ifM<B> method
dark_mode
light_mode
ifM<
B
>
method
Task
<
B
>
ifM
<
B
>(
Task
<
B
>
ifTrue
,
Task
<
B
>
ifFalse
)
Implementation
Task<B> ifM<B>(Task<B> ifTrue, Task<B> ifFalse) => flatMap((pred) => pred ? ifTrue : ifFalse);
cowpay package
documentation
core/packages/dartz/dartz
TaskBoolOps
ifM<B> method
TaskBoolOps extension on
Task
<
bool
>