ItemsProvider<T extends Modelable> constructor

ItemsProvider<T extends Modelable>(
  1. Service<T>? service,
  2. T factoryFunc(), {
  3. bool assignUserIdOnCreate = true,
  4. bool assignUserIdOnUpdate = true,
})

Creates a new ItemsProvider.

Implementation

ItemsProvider(
  Service<T>? service,
  this.factoryFunc, {
  this.assignUserIdOnCreate = true,
  this.assignUserIdOnUpdate = true,
}) {
  if (service != null) {
    this.service = service;
  }
}