createSelector3<S, R1, R2, R3, T> function
Create a selector composed from three other selectors.
Creates a memoized selector. The result of the function will only be recomputed when one of the composed selectors returns a new value.
Implementation
Selector<S, T> createSelector3<S, R1, R2, R3, T>(
Selector<S, R1> selector1,
Selector<S, R2> selector2,
Selector<S, R3> selector3,
T Function(R1, R2, R3, dynamic) mapFn,
) {
final memoized = memo4(mapFn);
return (S state, dynamic props) {
return memoized(
selector1(state, props),
selector2(state, props),
selector3(state, props),
props,
);
};
}