copyWith method
PiPacket
copyWith({
- String? ident,
- String? firmwareId,
- int? firmwareBuild,
- String? deviceId,
- String? hardwareId,
- String? modelId,
- FirmwareBranch? firmwareBranch,
- bool? fotaEnabled,
override
Implementation
@override
PiPacket copyWith({
String? ident,
String? firmwareId,
int? firmwareBuild,
String? deviceId,
String? hardwareId,
String? modelId,
FirmwareBranch? firmwareBranch,
bool? fotaEnabled,
}) {
return PiPacket(
ident: ident ?? this.ident,
firmwareId: firmwareId ?? this.firmwareId,
firmwareBuild: firmwareBuild ?? this.firmwareBuild,
deviceId: deviceId ?? this.deviceId,
hardwareId: hardwareId ?? this.hardwareId,
modelId: modelId ?? this.modelId,
firmwareBranch: firmwareBranch ?? this.firmwareBranch,
fotaEnabled: fotaEnabled ?? this.fotaEnabled,
);
}