copyWith method

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

Implementation

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