copyWith method
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,
);
}