AppConfig constructor

const AppConfig({
  1. required String host,
  2. required int port,
  3. String? prefix = _defaultPrefix,
  4. int workers = 1,
  5. int backlog = 0,
})

Implementation

const AppConfig({
  required this.host,
  required this.port,
  this.prefix = _defaultPrefix,
  this.workers = 1,
  this.backlog = 0,
})  : securityContext = null,
      requestClientCertificate = false,
      assert(workers >= 1, 'workers must be >= 1'),
      assert(backlog >= 0, 'backlog must be >= 0');