copyWith method
ServerConfig
copyWith({
- ServerType? type,
- String? hostname,
- int? port,
- SocketType? socketType,
- Authentication? authentication,
- Authentication? authenticationAlternative,
- UsernameType? usernameType,
Creates a copy of this ServerConfig with the specified values
Implementation
ServerConfig copyWith({
ServerType? type,
String? hostname,
int? port,
SocketType? socketType,
Authentication? authentication,
Authentication? authenticationAlternative,
UsernameType? usernameType,
}) =>
ServerConfig(
type: type ?? this.type,
hostname: hostname ?? this.hostname,
port: port ?? this.port,
socketType: socketType ?? this.socketType,
authentication: authentication ?? this.authentication,
authenticationAlternative:
authenticationAlternative ?? this.authenticationAlternative,
usernameType: usernameType ?? this.usernameType,
);