ProjectContext constructor
const
ProjectContext({
- required String projectName,
- required String serverpodVersion,
- required String rootPath,
- DatabaseType databaseType = DatabaseType.unknown,
- bool hasEndpoints = false,
- bool hasModels = false,
- bool hasMigrations = false,
- bool usesRedis = false,
- List<
EndpointInfo> endpoints = const [], - List<
ModelInfo> models = const [], - 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 [],
});