BuildConfig constructor
const
BuildConfig({
- required String rootDir,
- String host = '0.0.0.0',
- int port = 3000,
- BuildTarget target = BuildTarget.vm,
- String routesDir = 'routes',
- String middlewareDir = 'middleware',
- String publicDir = 'public',
- String outputDir = '.spry',
- bool caseSensitive = true,
- int? handlerCacheCapacity,
- ReloadStrategy reload = ReloadStrategy.restart,
- String? wranglerConfig,
- OpenAPIConfig? openapi,
- ClientConfig? client,
Creates a build configuration.
Implementation
const BuildConfig({
required this.rootDir,
this.host = '0.0.0.0',
this.port = 3000,
this.target = BuildTarget.vm,
this.routesDir = 'routes',
this.middlewareDir = 'middleware',
this.publicDir = 'public',
this.outputDir = '.spry',
this.caseSensitive = true,
this.handlerCacheCapacity,
this.reload = ReloadStrategy.restart,
this.wranglerConfig,
this.openapi,
this.client,
}) : assert(
handlerCacheCapacity == null || handlerCacheCapacity > 0,
'handlerCacheCapacity must be a positive integer or null',
);