copyWith method
Implementation
PortServiceInfo copyWith({String? addr, int? port, bool? isLocal, String? runId, String? realAddr, dynamic data, Map<String, String>? info}) {
Map<String, String> myinfo ={};
if(info != null){
myinfo.addAll(info);
}else if (this.info != null){
myinfo.addAll(this.info!);
}
return PortServiceInfo(
addr ?? this.addr,
port ?? this.port,
isLocal ?? this.isLocal,
runId: runId ?? this.runId,
realAddr: realAddr ?? this.realAddr,
data: data ?? this.data,
info: myinfo,
);
}