ServiceHost constructor

ServiceHost({
  1. String? host,
  2. String? webhookSecret,
  3. int? port,
  4. String? name,
})

Implementation

ServiceHost({String? host, this.webhookSecret, int? port, this.name})
  : host = host ?? (Platform.environment['MESHAGENT_HOST'] ?? '0.0.0.0'),
    port =
        port ??
        int.tryParse(Platform.environment['MESHAGENT_PORT'] ?? '') ??
        8081;