GetServerApp constructor

GetServerApp({
  1. Key? key,
  2. String host = '0.0.0.0',
  3. int port = 8080,
  4. String? certificateChain,
  5. String? privateKey,
  6. String? password,
  7. bool shared = true,
  8. List<GetPage>? getPages,
  9. bool cors = false,
  10. String corsUrl = '*',
  11. Widget? onNotFound,
  12. Bindings? initialBinding,
  13. bool useLog = true,
  14. String? jwtKey,
  15. Widget? home,
})

Implementation

GetServerApp({
  Key? key,
  this.host = '0.0.0.0',
  this.port = 8080,
  this.certificateChain,
  this.privateKey,
  this.password,
  this.shared = true,
  this.getPages,
  this.cors = false,
  this.corsUrl = '*',
  this.onNotFound,
  this.initialBinding,
  this.useLog = true,
  this.jwtKey,
  this.home,
})  : controller = Get.put(GetServerController(
        host: host,
        port: port,
        certificateChain: certificateChain,
        shared: shared,
        privateKey: privateKey,
        password: password,
        cors: cors,
        corsUrl: corsUrl,
        onNotFound: onNotFound,
        useLog: useLog,
        jwtKey: jwtKey,
        home: home,
        initialBinding: initialBinding,
        getPages: getPages,
      )),
      super(key: key);