copyWith method

PeripheralDTO copyWith({
  1. bool? isConnected,
  2. List<PeripheralParamDTO>? parameters,
})

Implementation

PeripheralDTO copyWith(
    {bool? isConnected, List<PeripheralParamDTO>? parameters}) {
  return PeripheralDTO(
      isConnected: isConnected ?? this.isConnected,
      parameters: parameters ?? this.parameters);
}