StateProperty<TState extends ReduxState, T> constructor

StateProperty<TState extends ReduxState, T>({
  1. ReduxStore<TState>? store,
  2. Key? key,
  3. required StatePropertySelector<TState, T> selector,
  4. bool equals(
    1. T a,
    2. T b
    )?,
  5. ReduxStreamWidgetBuilder<T>? builder,
  6. 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]',
  );
}