copyWithWrapped method

ModbusTcpConnectionDTO copyWithWrapped({
  1. Wrapped<String?>? name,
  2. Wrapped<String?>? tcpAddress,
  3. Wrapped<int?>? port,
  4. Wrapped<int?>? unitId,
  5. Wrapped<String?>? propertySpec,
})

Implementation

ModbusTcpConnectionDTO copyWithWrapped(
    {Wrapped<String?>? name,
    Wrapped<String?>? tcpAddress,
    Wrapped<int?>? port,
    Wrapped<int?>? unitId,
    Wrapped<String?>? propertySpec}) {
  return ModbusTcpConnectionDTO(
      name: (name != null ? name.value : this.name),
      tcpAddress: (tcpAddress != null ? tcpAddress.value : this.tcpAddress),
      port: (port != null ? port.value : this.port),
      unitId: (unitId != null ? unitId.value : this.unitId),
      propertySpec:
          (propertySpec != null ? propertySpec.value : this.propertySpec));
}