Add null-safety for list props with type dynamic

This commit is contained in:
dab246
2023-02-17 17:07:08 +07:00
committed by Dat Vu
parent f614a2bab4
commit 163ed8b9fe
95 changed files with 101 additions and 101 deletions
@@ -60,5 +60,5 @@ class DownloadAttachmentForWebFailure extends FeatureFailure {
DownloadAttachmentForWebFailure(this.taskId, this.exception);
@override
List<Object> get props => [taskId, exception];
List<Object?> get props => [taskId, exception];
}
@@ -11,10 +11,10 @@ class DownloadAttachmentsSuccess extends UIState {
}
class DownloadAttachmentsFailure extends FeatureFailure {
final exception;
final dynamic exception;
DownloadAttachmentsFailure(this.exception);
@override
List<Object> get props => [exception];
List<Object?> get props => [exception];
}
@@ -15,5 +15,5 @@ class ExportAttachmentFailure extends FeatureFailure {
ExportAttachmentFailure(this.exception);
@override
List<Object> get props => [exception];
List<Object?> get props => [exception];
}
@@ -32,5 +32,5 @@ class GetEmailContentFailure extends FeatureFailure {
GetEmailContentFailure(this.exception);
@override
List<Object> get props => [exception];
List<Object?> get props => [exception];
}
@@ -27,5 +27,5 @@ class GetStoredEmailStateFailure extends FeatureFailure {
GetStoredEmailStateFailure(this.exception);
@override
List<Object> get props => [exception];
List<Object?> get props => [exception];
}
@@ -29,5 +29,5 @@ class MarkAsEmailReadFailure extends FeatureFailure {
MarkAsEmailReadFailure(this.exception, this.readActions);
@override
List<Object> get props => [exception, readActions];
List<Object?> get props => [exception, readActions];
}
@@ -28,5 +28,5 @@ class MarkAsStarEmailFailure extends FeatureFailure {
MarkAsStarEmailFailure(this.exception, this.markStarAction);
@override
List<Object> get props => [exception, markStarAction];
List<Object?> get props => [exception, markStarAction];
}
@@ -47,5 +47,5 @@ class MoveToMailboxFailure extends FeatureFailure {
MoveToMailboxFailure(this.emailActionType, this.exception);
@override
List<Object> get props => [emailActionType, exception];
List<Object?> get props => [emailActionType, exception];
}