copyWith method

DiagnosticTestCycleState copyWith({
  1. DiagnosticCycleState? unloadedCycle,
  2. DiagnosticCycleState? loadedCycle,
  3. List<AdvancedParameterDefinition>? definitions,
  4. List<DiagnosticParameterValue>? parameterValues,
  5. WifiStatus? wifiStatus,
  6. bool? cellularConnected,
  7. int? cellularStrength,
  8. SubDeviceConnectionType? atsConnectionType,
  9. SignalStrength? atsIsmSignalStrength,
})

Implementation

DiagnosticTestCycleState copyWith({
  DiagnosticCycleState? unloadedCycle,
  DiagnosticCycleState? loadedCycle,
  List<AdvancedParameterDefinition>? definitions,
  List<DiagnosticParameterValue>? parameterValues,
  WifiStatus? wifiStatus,
  bool? cellularConnected,
  int? cellularStrength,
  SubDeviceConnectionType? atsConnectionType,
  SignalStrength? atsIsmSignalStrength,
}) {
  return DiagnosticTestCycleState(
    unloadedCycle: unloadedCycle ?? this.unloadedCycle,
    loadedCycle: loadedCycle ?? this.loadedCycle,
    definitions: definitions ?? this.definitions,
    parameterValues: parameterValues ?? this.parameterValues,
    wifiStatus: wifiStatus ?? this.wifiStatus,
    cellularConnected: cellularConnected ?? this.cellularConnected,
    cellularStrength: cellularStrength ?? this.cellularStrength,
    atsConnectionType: atsConnectionType ?? this.atsConnectionType,
    atsIsmSignalStrength: atsIsmSignalStrength ?? this.atsIsmSignalStrength,
  );
}