StoreConnector<S, ViewModel> constructor
const
StoreConnector<S, ViewModel> ({
- Key? key,
- required ViewModelBuilder<
ViewModel> builder, - required StoreConverter<
S, ViewModel> converter, - bool distinct = false,
- OnInitCallback<
S> ? onInit, - OnDisposeCallback<
S> ? onDispose, - bool rebuildOnChange = true,
- IgnoreChangeTest<
S> ? ignoreChange, - OnWillChangeCallback<
ViewModel> ? onWillChange, - OnDidChangeCallback<
ViewModel> ? onDidChange, - OnInitialBuildCallback<
ViewModel> ? onInitialBuild,
Create a StoreConnector by passing in the required converter and builder functions.
You can also specify a number of additional parameters that allow you to modify the behavior of the StoreConnector. Please see the documentation for each option for more info.
Implementation
const StoreConnector({
Key? key,
required this.builder,
required this.converter,
this.distinct = false,
this.onInit,
this.onDispose,
this.rebuildOnChange = true,
this.ignoreChange,
this.onWillChange,
this.onDidChange,
this.onInitialBuild,
}) : super(key: key);