Definitions constructor

Definitions({
  1. dynamic modules,
  2. dynamic packageName,
  3. dynamic stub,
  4. dynamic superModelPath,
  5. dynamic modelPath,
  6. dynamic controllerPath,
  7. dynamic servicePath,
  8. dynamic httpClientPath,
})

Implementation

Definitions({
  modules,
  packageName,
  stub,
  superModelPath,
  modelPath,
  controllerPath,
  servicePath,
  httpClientPath,
}) {
  this.packageName = packageName ?? '';

  this.stub = stub ?? Stub();

  this.superModelPath = superModelPath ?? 'lib/app/data/models/';
  this.httpClientPath = httpClientPath ?? 'lib/core/';
  this.modelPath = modelPath ?? 'lib/app/data/models/';
  this.servicePath = servicePath ?? 'lib/app/data/services/';
  this.controllerPath = controllerPath ?? 'lib/app/modules/{{model}}/';

  this.modules = modules ?? const [];
}