ServerConfig constructor

ServerConfig({
  1. ServerType? type,
  2. String? hostname,
  3. int? port,
  4. SocketType? socketType,
  5. Authentication? authentication,
  6. UsernameType? usernameType,
})

Implementation

ServerConfig(
    {this.type,
    this.hostname,
    this.port,
    this.socketType,
    this.authentication,
    this.usernameType}) {
  if (usernameType != null) {
    _username = _usernameTypeToText(usernameType);
  }
}