ProjectContext constructor

const ProjectContext({
  1. required String projectName,
  2. required String serverpodVersion,
  3. required String rootPath,
  4. DatabaseType databaseType = DatabaseType.unknown,
  5. bool hasEndpoints = false,
  6. bool hasModels = false,
  7. bool hasMigrations = false,
  8. bool usesRedis = false,
  9. List<EndpointInfo> endpoints = const [],
  10. List<ModelInfo> models = const [],
  11. List<MigrationInfo> migrations = const [],
})

Implementation

const ProjectContext({
  required this.projectName,
  required this.serverpodVersion,
  required this.rootPath,
  this.databaseType = DatabaseType.unknown,
  this.hasEndpoints = false,
  this.hasModels = false,
  this.hasMigrations = false,
  this.usesRedis = false,
  this.endpoints = const [],
  this.models = const [],
  this.migrations = const [],
});