copyWith method
Implementation
ModbusTcpConnectionDTO copyWith(
{String? name,
String? tcpAddress,
int? port,
int? unitId,
String? propertySpec}) {
return ModbusTcpConnectionDTO(
name: name ?? this.name,
tcpAddress: tcpAddress ?? this.tcpAddress,
port: port ?? this.port,
unitId: unitId ?? this.unitId,
propertySpec: propertySpec ?? this.propertySpec);
}