ServerConfig constructor

ServerConfig({
  1. String host = '127.0.0.1',
  2. int port = Db.mongoDefaultPort,
  3. bool? isSecure,
  4. bool? tlsAllowInvalidCertificates,
  5. Uint8List? tlsCAFileContent,
  6. Uint8List? tlsCertificateKeyFileContent,
  7. String? tlsCertificateKeyFilePassword,
})

Implementation

ServerConfig(
    {this.host = '127.0.0.1',
    this.port = Db.mongoDefaultPort,
    bool? isSecure,
    bool? tlsAllowInvalidCertificates,
    this.tlsCAFileContent,
    this.tlsCertificateKeyFileContent,
    this.tlsCertificateKeyFilePassword})
    : isSecure = isSecure ?? false,
      tlsAllowInvalidCertificates = tlsAllowInvalidCertificates ?? false;