WebhookServer constructor

WebhookServer({
  1. String? host,
  2. int? port,
  3. String? path,
  4. bool? validateWebhookSecret,
  5. String? webhookSecret,
  6. bool supportsWebSockets = true,
})

Implementation

WebhookServer({
  String? host,
  int? port,
  String? path,
  bool? validateWebhookSecret,
  String? webhookSecret,
  this.supportsWebSockets = true,
}) : host = host ?? '0.0.0.0',
     port =
         port ??
         int.tryParse(Platform.environment['MESHAGENT_PORT'] ?? '') ??
         8080,
     path = path ?? '/webhook',
     validateWebhookSecret = validateWebhookSecret ?? false,
     webhookSecret =
         webhookSecret ?? Platform.environment['MESHAGENT_WEBHOOK_SECRET'];