copyWith method

  1. @override
PiPacket copyWith({
  1. String? ident,
  2. String? firmwareId,
  3. int? firmwareBuild,
  4. String? deviceId,
  5. String? hardwareId,
  6. String? modelId,
  7. FirmwareBranch? firmwareBranch,
  8. 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,
  );
}