copyWith method
Copy model with updated fields
Implementation
H5PRequestModel copyWith({
String? refName,
String? url,
String? error,
H5PFileStatus? status,
int? priority,
String? localPath,
}) {
return H5PRequestModel(
refName: refName ?? this.refName,
url: url ?? this.url,
error: error ?? this.error,
status: status ?? this.status,
priority: priority ?? this.priority,
localPath: localPath ?? this.localPath,
);
}