DataProvider<T extends Modelable> constructor

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

Creates a new SingleDataProvider.

Implementation

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