AppConfig constructor
AppConfig({
- required String appKey,
- int serverPort = 3000,
- int totalIsolate = 3,
- List<
DoxService> services = const <DoxService>[], - Map<
Type, FormRequest Function()> formRequests = const <Type, FormRequest Function()>{}, - List globalMiddleware = const <dynamic>[],
- List<
Router> routers = const <Router>[], - CORSConfig cors = const CORSConfig(),
- LoggerConfig logger = const LoggerConfig(),
- CacheConfig cache = const CacheConfig(),
- FileStorageConfig fileStorage = const FileStorageConfig(),
- dynamic errorHandler() = defaultErrorHandler,
- ResponseHandlerInterface? responseHandler,
Implementation
AppConfig({
required this.appKey,
this.serverPort = 3000,
this.totalIsolate = 3,
this.services = const <DoxService>[],
this.formRequests = const <Type, FormRequest Function()>{},
this.globalMiddleware = const <dynamic>[],
this.routers = const <Router>[],
this.cors = const CORSConfig(),
this.logger = const LoggerConfig(),
this.cache = const CacheConfig(),
this.fileStorage = const FileStorageConfig(),
this.errorHandler = defaultErrorHandler,
this.responseHandler,
});