copyWith method

SingleHostName copyWith({
  1. int? port,
  2. String? dnsName,
})

Implementation

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