StoreConnector<S, ViewModel> constructor

const StoreConnector<S, ViewModel>({
  1. Key? key,
  2. required ViewModelBuilder<ViewModel> builder,
  3. required StoreConverter<S, ViewModel> converter,
  4. bool distinct = false,
  5. OnInitCallback<S>? onInit,
  6. OnDisposeCallback<S>? onDispose,
  7. bool rebuildOnChange = true,
  8. IgnoreChangeTest<S>? ignoreChange,
  9. OnWillChangeCallback<ViewModel>? onWillChange,
  10. OnDidChangeCallback<ViewModel>? onDidChange,
  11. 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);