copyWith method

EspProvisioningState copyWith({
  1. EspProvisioningStatus? status,
  2. List<String>? bluetoothDevices,
  3. String? bluetoothDevice,
  4. List<String>? wifiNetworks,
  5. String? wifiNetwork,
  6. bool? wifiProvisioned,
  7. bool? timedOut,
  8. String? errorMsg,
})

Implementation

EspProvisioningState copyWith({
  EspProvisioningStatus? status,
  List<String>? bluetoothDevices,
  String? bluetoothDevice,
  List<String>? wifiNetworks,
  String? wifiNetwork,
  bool? wifiProvisioned,
  bool? timedOut,
  String? errorMsg,
}) {
  return EspProvisioningState(
    status: status ?? this.status,
    bluetoothDevices: bluetoothDevices ?? this.bluetoothDevices,
    bluetoothDevice: bluetoothDevice ?? this.bluetoothDevice,
    wifiNetworks: wifiNetworks ?? this.wifiNetworks,
    wifiNetwork: wifiNetwork ?? this.wifiNetwork,
    wifiProvisioned: wifiProvisioned ?? this.wifiProvisioned,
    timedOut: timedOut ?? this.timedOut,
    errorMsg: errorMsg ?? this.errorMsg,
  );
}