AppConfig constructor

AppConfig({
  1. required String appKey,
  2. int serverPort = 3000,
  3. int totalIsolate = 3,
  4. List<DoxService> services = const <DoxService>[],
  5. Map<Type, FormRequest Function()> formRequests = const <Type, FormRequest Function()>{},
  6. List globalMiddleware = const <dynamic>[],
  7. List<Router> routers = const <Router>[],
  8. CORSConfig cors = const CORSConfig(),
  9. LoggerConfig logger = const LoggerConfig(),
  10. CacheConfig cache = const CacheConfig(),
  11. FileStorageConfig fileStorage = const FileStorageConfig(),
  12. dynamic errorHandler(
    1. Object?,
    2. StackTrace
    ) = defaultErrorHandler,
  13. 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,
});