copyWith method
Implementation
SingleHostName copyWith({int? port, String? dnsName}) {
return SingleHostName(
port: port ?? this.port, dnsName: dnsName ?? this.dnsName);
}
SingleHostName copyWith({int? port, String? dnsName}) {
return SingleHostName(
port: port ?? this.port, dnsName: dnsName ?? this.dnsName);
}