TF-2177 Fix download attachment not working on web

Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit 09cbfe5245c206670aa2191c151fd8f2ea48df3a)
This commit is contained in:
dab246
2023-10-23 23:19:12 +07:00
committed by Dat H. Pham
parent 73a8919f18
commit 424ab675d5
17 changed files with 134 additions and 113 deletions
@@ -55,9 +55,11 @@ class DownloadAttachmentForWebSuccess extends UIState {
class DownloadAttachmentForWebFailure extends FeatureFailure {
final DownloadTaskId taskId;
final DownloadTaskId? taskId;
DownloadAttachmentForWebFailure(this.taskId, dynamic exception) : super(exception: exception);
DownloadAttachmentForWebFailure({
this.taskId, dynamic exception
}) : super(exception: exception);
@override
List<Object?> get props => [taskId, ...super.props];