Is there any example of using this Selector2 in Provider package ?.I can't find any documentation on how to use this
Selector2<ModelA,ModelB, bool>(
selector: (_, modelA,modelB) {
return modelA.isLoading; //I don't know how to return this
},
I just found a workaround like this
Selector2<ModelA,ModelB,Tuple2<bool,bool>>(
selector : (_,modelA,modelB) => Tuple2(modelA.isLoading,modelB.isLoading),
builder : ...
)
import tuple package first before using this
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With