StateProperty<TState extends ReduxState, T> constructor
StateProperty<TState extends ReduxState, T> ({
- ReduxStore<
TState> ? store, - Key? key,
- required StatePropertySelector<
TState, T> selector, - bool equals(
- T a,
- T b
- ReduxStreamWidgetBuilder<
T> ? builder, - ReduxStreamWidgetBuilderWithState<
TState, T> ? builderWithState,
Implementation
StateProperty({
this.store,
Key? key,
required this.selector,
this.equals,
this.builder,
this.builderWithState,
}) : super(key: key) {
final assertBuilderNum =
(builder != null ? 1 : 0) + (builderWithState != null ? 1 : 0);
assert(
assertBuilderNum == 1,
'Invalid [builder | builderWithState]',
);
}