copyWith method

SingleHostAddr copyWith({
  1. int? port,
  2. Ipv4? ipv4,
  3. Ipv6? ipv6,
})

Implementation

SingleHostAddr copyWith({
  int? port,
  Ipv4? ipv4,
  Ipv6? ipv6,
}) {
  return SingleHostAddr(
      port: port ?? this.port,
      ipv4: ipv4 ?? this.ipv4,
      ipv6: ipv6 ?? this.ipv6);
}