StoreConnector<St, Model> constructor

const StoreConnector<St, Model>({
  1. Key? key,
  2. required ViewModelBuilder<Model> builder,
  3. bool? distinct,
  4. VmFactory<St, dynamic, dynamic> vm()?,
  5. StoreConverter<St, Model>? converter,
  6. Object? debug,
  7. OnInitCallback<St>? onInit,
  8. OnDisposeCallback<St>? onDispose,
  9. bool rebuildOnChange = true,
  10. ShouldUpdateModel<St>? shouldUpdateModel,
  11. OnWillChangeCallback<St, Model>? onWillChange,
  12. OnDidChangeCallback<St, Model>? onDidChange,
  13. OnInitialBuildCallback<St, Model>? onInitialBuild,
})

Implementation

const StoreConnector({
  Key? key,
  required this.builder,
  this.distinct,
  this.vm, // Recommended.
  this.converter, // Can be used instead of `vm`.
  this.debug,
  this.onInit,
  this.onDispose,
  this.rebuildOnChange = true,
  this.shouldUpdateModel,
  this.onWillChange,
  this.onDidChange,
  this.onInitialBuild,
})  : assert(converter == null || vm == null, "You can't provide both `converter` and `vm`."),
      assert(converter != null || vm != null,
          "You should provide the `converter` or the `vm` parameter."),
      super(key: key);