copyWith method

SocketInfo copyWith({
  1. InternetAddress? address,
  2. int? port,
})

A copy of this configuration, to avoid modifying the original.

Implementation

SocketInfo copyWith({InternetAddress? address, int? port}) => SocketInfo(
  address: address ?? this.address,
  port: port ?? this.port,
);