From 7e6caf43a9d39378ee4a62a51bece9571ce62e95 Mon Sep 17 00:00:00 2001 From: dab246 Date: Wed, 14 Jun 2023 15:09:53 +0700 Subject: [PATCH] Apply lint to hide unnecessary warnings when running `dart analyze` --- lib/features/base/reloadable/reloadable_controller.dart | 2 +- .../cleanup/domain/state/cleanup_email_cache_state.dart | 3 +-- .../domain/state/cleanup_recent_login_url_cache_state.dart | 3 +-- .../state/cleanup_recent_login_username_cache_state.dart | 3 +-- .../domain/state/cleanup_recent_search_cache_state.dart | 3 +-- .../composer/domain/state/download_image_as_base64_state.dart | 3 +-- .../composer/domain/state/get_autocomplete_state.dart | 3 +-- .../domain/state/get_device_contact_suggestions_state.dart | 3 +-- .../composer/domain/state/save_email_address_state.dart | 3 +-- .../composer/domain/state/save_email_as_drafts_state.dart | 3 +-- .../composer/domain/state/update_email_drafts_state.dart | 3 +-- .../composer/domain/state/upload_attachment_state.dart | 3 +-- .../email/domain/state/delete_email_permanently_state.dart | 4 +--- .../state/delete_multiple_emails_permanently_state.dart | 4 +--- .../email/domain/state/download_attachment_for_web_state.dart | 3 +-- .../email/domain/state/download_attachments_state.dart | 3 +-- lib/features/email/domain/state/export_attachment_state.dart | 3 +-- lib/features/email/domain/state/get_email_content_state.dart | 3 +-- .../email/domain/state/get_stored_state_email_state.dart | 3 +-- lib/features/email/domain/state/mark_as_email_read_state.dart | 3 +-- lib/features/email/domain/state/mark_as_email_star_state.dart | 3 +-- lib/features/email/domain/state/move_to_mailbox_state.dart | 3 +-- .../email/domain/state/send_receipt_to_sender_state.dart | 4 +--- .../domain/state/authenticate_oidc_on_browser_state.dart | 3 +-- .../login/domain/state/authentication_user_state.dart | 3 +-- .../login/domain/state/check_oidc_is_available_state.dart | 3 +-- .../login/domain/state/delete_authority_oidc_state.dart | 3 +-- lib/features/login/domain/state/delete_credential_state.dart | 3 +-- .../domain/state/get_all_recent_login_url_latest_state.dart | 3 +-- .../domain/state/get_all_recent_login_username_state.dart | 3 +-- .../login/domain/state/get_authentication_info_state.dart | 3 +-- .../login/domain/state/get_oidc_configuration_state.dart | 3 +-- .../login/domain/state/get_oidc_is_available_state.dart | 3 +-- .../domain/state/get_stored_oidc_configuration_state.dart | 3 +-- .../login/domain/state/get_stored_token_oidc_state.dart | 3 +-- lib/features/login/domain/state/get_token_oidc_state.dart | 3 +-- lib/features/login/domain/state/refresh_token_oidc_state.dart | 3 +-- .../login/domain/state/save_recent_login_url_state.dart | 3 +-- .../login/domain/state/save_recent_login_username_state.dart | 3 +-- .../domain/state/update_authentication_account_state.dart | 3 +-- .../mailbox/domain/state/create_new_mailbox_state.dart | 3 +-- .../mailbox/domain/state/delete_multiple_mailbox_state.dart | 3 +-- .../mailbox/domain/state/get_all_mailboxes_state.dart | 3 +-- .../mailbox/domain/state/mark_as_mailbox_read_state.dart | 3 +-- lib/features/mailbox/domain/state/move_mailbox_state.dart | 3 +-- .../domain/state/refresh_changes_all_mailboxes_state.dart | 3 +-- lib/features/mailbox/domain/state/rename_mailbox_state.dart | 3 +-- lib/features/mailbox/domain/state/search_mailbox_state.dart | 3 +-- .../mailbox/domain/state/subscribe_mailbox_state.dart | 3 +-- .../domain/state/subscribe_multiple_mailbox_state.dart | 3 +-- .../mailbox_creator/domain/state/verify_name_view_state.dart | 4 ++-- .../state/delete_last_time_dismissed_spam_reported_state.dart | 3 +-- .../domain/state/delete_spam_report_state.dart | 3 +-- .../domain/state/get_all_recent_search_latest_state.dart | 3 +-- .../domain/state/get_app_dashboard_configuration_state.dart | 3 +-- .../domain/state/get_composer_cache_state.dart | 3 +-- .../domain/state/get_number_of_unread_spam_emails_state.dart | 3 +-- .../mailbox_dashboard/domain/state/get_spam_report_state.dart | 3 +-- .../domain/state/get_user_profile_state.dart | 3 +-- .../domain/state/quick_search_email_state.dart | 3 +-- .../domain/state/remove_composer_cache_state.dart | 3 +-- .../domain/state/remove_email_drafts_state.dart | 3 +-- .../domain/state/save_composer_cache_state.dart | 3 +-- .../domain/state/save_recent_search_state.dart | 3 +-- .../state/store_last_time_dismissed_spam_reported_state.dart | 3 +-- .../domain/state/store_spam_report_state.dart | 3 +-- .../presentation/mailbox_dashboard_view.dart | 4 ++-- .../domain/state/add_recipient_in_forwarding_state.dart | 3 +-- .../domain/state/create_new_default_identity_state.dart | 3 +-- .../domain/state/create_new_identity_state.dart | 3 +-- .../domain/state/create_new_rule_filter_state.dart | 3 +-- .../manage_account/domain/state/delete_email_rule_state.dart | 3 +-- .../manage_account/domain/state/delete_identity_state.dart | 3 +-- .../domain/state/delete_recipient_in_forwarding_state.dart | 3 +-- .../domain/state/edit_default_identity_state.dart | 3 +-- .../domain/state/edit_email_rule_filter_state.dart | 3 +-- .../manage_account/domain/state/edit_identity_state.dart | 3 +-- .../domain/state/edit_local_copy_in_forwarding_state.dart | 3 +-- .../manage_account/domain/state/get_all_identities_state.dart | 3 +-- .../manage_account/domain/state/get_all_rules_state.dart | 3 +-- .../manage_account/domain/state/get_all_vacation_state.dart | 3 +-- .../manage_account/domain/state/get_forward_state.dart | 3 +-- .../manage_account/domain/state/log_out_oidc_state.dart | 3 +-- .../manage_account/domain/state/save_language_state.dart | 3 +-- .../manage_account/domain/state/update_vacation_state.dart | 3 +-- .../domain/state/delete_email_state_to_refresh_state.dart | 3 +-- .../domain/state/delete_mailbox_state_to_refresh_state.dart | 3 +-- .../domain/state/destroy_subscription_state.dart | 3 +-- .../domain/state/get_email_state_to_refresh_state.dart | 3 +-- .../domain/state/get_fcm_subscription_local.dart | 3 +-- .../domain/state/get_firebase_subscription_state.dart | 3 +-- .../domain/state/get_mailbox_state_to_refresh_state.dart | 3 +-- .../domain/state/get_stored_email_delivery_state.dart | 3 +-- .../domain/state/register_new_token_state.dart | 3 +-- .../domain/state/store_email_delivery_state.dart | 3 +-- .../domain/state/store_email_state_to_refresh_state.dart | 3 +-- .../domain/state/store_mailbox_state_to_refresh_state.dart | 3 +-- .../domain/state/store_subscription_state.dart | 3 +-- lib/features/quotas/domain/state/get_quotas_state.dart | 3 +-- .../domain/state/refresh_changes_search_email_state.dart | 3 +-- lib/features/session/presentation/session_controller.dart | 2 +- .../thread/domain/state/empty_trash_folder_state.dart | 3 +-- lib/features/thread/domain/state/get_all_email_state.dart | 3 +-- lib/features/thread/domain/state/get_email_by_id_state.dart | 3 +-- lib/features/thread/domain/state/load_more_emails_state.dart | 3 +-- .../domain/state/mark_as_multiple_email_read_state.dart | 3 +-- .../domain/state/mark_as_star_multiple_email_state.dart | 3 +-- .../domain/state/move_multiple_email_to_mailbox_state.dart | 3 +-- .../thread/domain/state/refresh_changes_all_email_state.dart | 3 +-- lib/features/thread/domain/state/search_email_state.dart | 3 +-- lib/features/thread/domain/state/search_more_email_state.dart | 3 +-- lib/features/upload/domain/state/local_file_picker_state.dart | 3 +-- 112 files changed, 114 insertions(+), 225 deletions(-) diff --git a/lib/features/base/reloadable/reloadable_controller.dart b/lib/features/base/reloadable/reloadable_controller.dart index 35684e353b..e72d65fd79 100644 --- a/lib/features/base/reloadable/reloadable_controller.dart +++ b/lib/features/base/reloadable/reloadable_controller.dart @@ -140,7 +140,7 @@ abstract class ReloadableController extends BaseController { } void updateAuthenticationAccount(Session session, AccountId accountId, UserName userName) { - final apiUrl = session.getQualifiedApiUrl(baseUrl: _dynamicUrlInterceptors.jmapUrl);; + final apiUrl = session.getQualifiedApiUrl(baseUrl: _dynamicUrlInterceptors.jmapUrl); log('ReloadableController::updateAuthenticationAccount():apiUrl: $apiUrl'); if (apiUrl.isNotEmpty) { consumeState(_updateAuthenticationAccountInteractor.execute(accountId, apiUrl, userName)); diff --git a/lib/features/cleanup/domain/state/cleanup_email_cache_state.dart b/lib/features/cleanup/domain/state/cleanup_email_cache_state.dart index 18c6ac56ac..683254ccdb 100644 --- a/lib/features/cleanup/domain/state/cleanup_email_cache_state.dart +++ b/lib/features/cleanup/domain/state/cleanup_email_cache_state.dart @@ -9,9 +9,8 @@ class CleanupEmailCacheSuccess extends UIState { } class CleanupEmailCacheFailure extends FeatureFailure { - final dynamic exception; - CleanupEmailCacheFailure(this.exception); + CleanupEmailCacheFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/cleanup/domain/state/cleanup_recent_login_url_cache_state.dart b/lib/features/cleanup/domain/state/cleanup_recent_login_url_cache_state.dart index 6a59df7ce1..15a5ae9816 100644 --- a/lib/features/cleanup/domain/state/cleanup_recent_login_url_cache_state.dart +++ b/lib/features/cleanup/domain/state/cleanup_recent_login_url_cache_state.dart @@ -9,9 +9,8 @@ class CleanupRecentLoginUrlCacheSuccess extends UIState { } class CleanupRecentLoginUrlCacheFailure extends FeatureFailure { - final dynamic exception; - CleanupRecentLoginUrlCacheFailure(this.exception); + CleanupRecentLoginUrlCacheFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/cleanup/domain/state/cleanup_recent_login_username_cache_state.dart b/lib/features/cleanup/domain/state/cleanup_recent_login_username_cache_state.dart index d426c9a69c..72b4ceafb9 100644 --- a/lib/features/cleanup/domain/state/cleanup_recent_login_username_cache_state.dart +++ b/lib/features/cleanup/domain/state/cleanup_recent_login_username_cache_state.dart @@ -9,9 +9,8 @@ class CleanupRecentLoginUsernameCacheSuccess extends UIState { } class CleanupRecentLoginUsernameCacheFailure extends FeatureFailure { - final dynamic exception; - CleanupRecentLoginUsernameCacheFailure(this.exception); + CleanupRecentLoginUsernameCacheFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/cleanup/domain/state/cleanup_recent_search_cache_state.dart b/lib/features/cleanup/domain/state/cleanup_recent_search_cache_state.dart index 3a913a0456..f625b7c3e2 100644 --- a/lib/features/cleanup/domain/state/cleanup_recent_search_cache_state.dart +++ b/lib/features/cleanup/domain/state/cleanup_recent_search_cache_state.dart @@ -9,9 +9,8 @@ class CleanupRecentSearchCacheSuccess extends UIState { } class CleanupRecentSearchCacheFailure extends FeatureFailure { - final dynamic exception; - CleanupRecentSearchCacheFailure(this.exception); + CleanupRecentSearchCacheFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/composer/domain/state/download_image_as_base64_state.dart b/lib/features/composer/domain/state/download_image_as_base64_state.dart index 0b783e198b..4270b0b416 100644 --- a/lib/features/composer/domain/state/download_image_as_base64_state.dart +++ b/lib/features/composer/domain/state/download_image_as_base64_state.dart @@ -24,9 +24,8 @@ class DownloadImageAsBase64Success extends UIState { } class DownloadImageAsBase64Failure extends FeatureFailure { - final dynamic exception; - DownloadImageAsBase64Failure(this.exception); + DownloadImageAsBase64Failure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/composer/domain/state/get_autocomplete_state.dart b/lib/features/composer/domain/state/get_autocomplete_state.dart index 48888fbc67..45bd7b22c3 100644 --- a/lib/features/composer/domain/state/get_autocomplete_state.dart +++ b/lib/features/composer/domain/state/get_autocomplete_state.dart @@ -12,9 +12,8 @@ class GetAutoCompleteSuccess extends UIState { } class GetAutoCompleteFailure extends FeatureFailure { - final dynamic exception; - GetAutoCompleteFailure(this.exception); + GetAutoCompleteFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/composer/domain/state/get_device_contact_suggestions_state.dart b/lib/features/composer/domain/state/get_device_contact_suggestions_state.dart index 91174591bc..97231af6af 100644 --- a/lib/features/composer/domain/state/get_device_contact_suggestions_state.dart +++ b/lib/features/composer/domain/state/get_device_contact_suggestions_state.dart @@ -12,9 +12,8 @@ class GetDeviceContactSuggestionsSuccess extends UIState { } class GetDeviceContactSuggestionsFailure extends FeatureFailure { - final dynamic exception; - GetDeviceContactSuggestionsFailure(this.exception); + GetDeviceContactSuggestionsFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/composer/domain/state/save_email_address_state.dart b/lib/features/composer/domain/state/save_email_address_state.dart index a42c67757d..9789273154 100644 --- a/lib/features/composer/domain/state/save_email_address_state.dart +++ b/lib/features/composer/domain/state/save_email_address_state.dart @@ -9,9 +9,8 @@ class SaveEmailAddressSuccess extends UIState { } class SaveEmailAddressFailure extends FeatureFailure { - final dynamic exception; - SaveEmailAddressFailure(this.exception); + SaveEmailAddressFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/composer/domain/state/save_email_as_drafts_state.dart b/lib/features/composer/domain/state/save_email_as_drafts_state.dart index 3c12d0ea86..94c8f8fbcb 100644 --- a/lib/features/composer/domain/state/save_email_as_drafts_state.dart +++ b/lib/features/composer/domain/state/save_email_as_drafts_state.dart @@ -28,9 +28,8 @@ class SaveEmailAsDraftsSuccess extends UIActionState { } class SaveEmailAsDraftsFailure extends FeatureFailure { - final dynamic exception; - SaveEmailAsDraftsFailure(this.exception); + SaveEmailAsDraftsFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/composer/domain/state/update_email_drafts_state.dart b/lib/features/composer/domain/state/update_email_drafts_state.dart index 22ac59f8dc..b9a2fb877f 100644 --- a/lib/features/composer/domain/state/update_email_drafts_state.dart +++ b/lib/features/composer/domain/state/update_email_drafts_state.dart @@ -28,9 +28,8 @@ class UpdateEmailDraftsSuccess extends UIActionState { } class UpdateEmailDraftsFailure extends FeatureFailure { - final dynamic exception; - UpdateEmailDraftsFailure(this.exception); + UpdateEmailDraftsFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/composer/domain/state/upload_attachment_state.dart b/lib/features/composer/domain/state/upload_attachment_state.dart index 87c169d055..85d737ac0a 100644 --- a/lib/features/composer/domain/state/upload_attachment_state.dart +++ b/lib/features/composer/domain/state/upload_attachment_state.dart @@ -15,10 +15,9 @@ class UploadAttachmentSuccess extends UIState { } class UploadAttachmentFailure extends FeatureFailure { - final dynamic exception; final bool isInline; - UploadAttachmentFailure(this.exception, {this.isInline = false}); + UploadAttachmentFailure(dynamic exception, {this.isInline = false}) : super(exception: exception); @override List get props => [exception, isInline]; diff --git a/lib/features/email/domain/state/delete_email_permanently_state.dart b/lib/features/email/domain/state/delete_email_permanently_state.dart index de50c93d2f..b997643557 100644 --- a/lib/features/email/domain/state/delete_email_permanently_state.dart +++ b/lib/features/email/domain/state/delete_email_permanently_state.dart @@ -23,9 +23,7 @@ class DeleteEmailPermanentlySuccess extends UIActionState { class DeleteEmailPermanentlyFailure extends FeatureFailure { - final dynamic exception; - - DeleteEmailPermanentlyFailure(this.exception); + DeleteEmailPermanentlyFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/email/domain/state/delete_multiple_emails_permanently_state.dart b/lib/features/email/domain/state/delete_multiple_emails_permanently_state.dart index 9b1c014ade..dd8bcd9e60 100644 --- a/lib/features/email/domain/state/delete_multiple_emails_permanently_state.dart +++ b/lib/features/email/domain/state/delete_multiple_emails_permanently_state.dart @@ -47,9 +47,7 @@ class DeleteMultipleEmailsPermanentlyAllFailure extends FeatureFailure { class DeleteMultipleEmailsPermanentlyFailure extends FeatureFailure { - final dynamic exception; - - DeleteMultipleEmailsPermanentlyFailure(this.exception); + DeleteMultipleEmailsPermanentlyFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/email/domain/state/download_attachment_for_web_state.dart b/lib/features/email/domain/state/download_attachment_for_web_state.dart index 8f1eec15d3..529480a73b 100644 --- a/lib/features/email/domain/state/download_attachment_for_web_state.dart +++ b/lib/features/email/domain/state/download_attachment_for_web_state.dart @@ -55,9 +55,8 @@ class DownloadAttachmentForWebSuccess extends UIState { class DownloadAttachmentForWebFailure extends FeatureFailure { final DownloadTaskId taskId; - final dynamic exception; - DownloadAttachmentForWebFailure(this.taskId, this.exception); + DownloadAttachmentForWebFailure(this.taskId, dynamic exception) : super(exception: exception); @override List get props => [taskId, exception]; diff --git a/lib/features/email/domain/state/download_attachments_state.dart b/lib/features/email/domain/state/download_attachments_state.dart index f60923963b..10642e00f5 100644 --- a/lib/features/email/domain/state/download_attachments_state.dart +++ b/lib/features/email/domain/state/download_attachments_state.dart @@ -11,9 +11,8 @@ class DownloadAttachmentsSuccess extends UIState { } class DownloadAttachmentsFailure extends FeatureFailure { - final dynamic exception; - DownloadAttachmentsFailure(this.exception); + DownloadAttachmentsFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/email/domain/state/export_attachment_state.dart b/lib/features/email/domain/state/export_attachment_state.dart index 7d5dc7e5bf..e3b4549820 100644 --- a/lib/features/email/domain/state/export_attachment_state.dart +++ b/lib/features/email/domain/state/export_attachment_state.dart @@ -10,9 +10,8 @@ class ExportAttachmentSuccess extends UIState { } class ExportAttachmentFailure extends FeatureFailure { - final dynamic exception; - ExportAttachmentFailure(this.exception); + ExportAttachmentFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/email/domain/state/get_email_content_state.dart b/lib/features/email/domain/state/get_email_content_state.dart index 0e19ba6bf3..0bb49c95ff 100644 --- a/lib/features/email/domain/state/get_email_content_state.dart +++ b/lib/features/email/domain/state/get_email_content_state.dart @@ -43,9 +43,8 @@ class GetEmailContentFromCacheSuccess extends UIState { } class GetEmailContentFailure extends FeatureFailure { - final dynamic exception; - GetEmailContentFailure(this.exception); + GetEmailContentFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/email/domain/state/get_stored_state_email_state.dart b/lib/features/email/domain/state/get_stored_state_email_state.dart index 5ddf82cd6b..359b58d398 100644 --- a/lib/features/email/domain/state/get_stored_state_email_state.dart +++ b/lib/features/email/domain/state/get_stored_state_email_state.dart @@ -22,9 +22,8 @@ class NotFoundEmailState extends FeatureFailure { } class GetStoredEmailStateFailure extends FeatureFailure { - final dynamic exception; - GetStoredEmailStateFailure(this.exception); + GetStoredEmailStateFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/email/domain/state/mark_as_email_read_state.dart b/lib/features/email/domain/state/mark_as_email_read_state.dart index de4a8644dd..1d6448e1c6 100644 --- a/lib/features/email/domain/state/mark_as_email_read_state.dart +++ b/lib/features/email/domain/state/mark_as_email_read_state.dart @@ -23,10 +23,9 @@ class MarkAsEmailReadSuccess extends UIActionState { } class MarkAsEmailReadFailure extends FeatureFailure { - final dynamic exception; final ReadActions readActions; - MarkAsEmailReadFailure(this.exception, this.readActions); + MarkAsEmailReadFailure(dynamic exception, this.readActions) : super(exception: exception); @override List get props => [exception, readActions]; diff --git a/lib/features/email/domain/state/mark_as_email_star_state.dart b/lib/features/email/domain/state/mark_as_email_star_state.dart index d9619f1256..a668f28d31 100644 --- a/lib/features/email/domain/state/mark_as_email_star_state.dart +++ b/lib/features/email/domain/state/mark_as_email_star_state.dart @@ -22,10 +22,9 @@ class MarkAsStarEmailSuccess extends UIActionState { } class MarkAsStarEmailFailure extends FeatureFailure { - final dynamic exception; final MarkStarAction markStarAction; - MarkAsStarEmailFailure(this.exception, this.markStarAction); + MarkAsStarEmailFailure(dynamic exception, this.markStarAction) : super(exception: exception); @override List get props => [exception, markStarAction]; diff --git a/lib/features/email/domain/state/move_to_mailbox_state.dart b/lib/features/email/domain/state/move_to_mailbox_state.dart index b2509ee4f4..bf5ab3948c 100644 --- a/lib/features/email/domain/state/move_to_mailbox_state.dart +++ b/lib/features/email/domain/state/move_to_mailbox_state.dart @@ -42,9 +42,8 @@ class MoveToMailboxSuccess extends UIActionState { class MoveToMailboxFailure extends FeatureFailure { final EmailActionType emailActionType; - final dynamic exception; - MoveToMailboxFailure(this.emailActionType, this.exception); + MoveToMailboxFailure(this.emailActionType, dynamic exception) : super(exception: exception); @override List get props => [emailActionType, exception]; diff --git a/lib/features/email/domain/state/send_receipt_to_sender_state.dart b/lib/features/email/domain/state/send_receipt_to_sender_state.dart index 08cb4ad834..a3b7c37301 100644 --- a/lib/features/email/domain/state/send_receipt_to_sender_state.dart +++ b/lib/features/email/domain/state/send_receipt_to_sender_state.dart @@ -16,9 +16,7 @@ class SendReceiptToSenderSuccess extends UIState { class SendReceiptToSenderFailure extends FeatureFailure { - final dynamic exception; - - SendReceiptToSenderFailure(this.exception); + SendReceiptToSenderFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/login/domain/state/authenticate_oidc_on_browser_state.dart b/lib/features/login/domain/state/authenticate_oidc_on_browser_state.dart index d24b3ae9d9..98dbaca690 100644 --- a/lib/features/login/domain/state/authenticate_oidc_on_browser_state.dart +++ b/lib/features/login/domain/state/authenticate_oidc_on_browser_state.dart @@ -19,9 +19,8 @@ class AuthenticateOidcOnBrowserSuccess extends UIState { } class AuthenticateOidcOnBrowserFailure extends FeatureFailure { - final dynamic exception; - AuthenticateOidcOnBrowserFailure(this.exception); + AuthenticateOidcOnBrowserFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/login/domain/state/authentication_user_state.dart b/lib/features/login/domain/state/authentication_user_state.dart index 22f29ff6d0..36c739a350 100644 --- a/lib/features/login/domain/state/authentication_user_state.dart +++ b/lib/features/login/domain/state/authentication_user_state.dart @@ -18,9 +18,8 @@ class AuthenticationUserSuccess extends UIState { } class AuthenticationUserFailure extends FeatureFailure { - final dynamic exception; - AuthenticationUserFailure(this.exception); + AuthenticationUserFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/login/domain/state/check_oidc_is_available_state.dart b/lib/features/login/domain/state/check_oidc_is_available_state.dart index 8518d9e65c..a2e6bb4193 100644 --- a/lib/features/login/domain/state/check_oidc_is_available_state.dart +++ b/lib/features/login/domain/state/check_oidc_is_available_state.dart @@ -20,9 +20,8 @@ class CheckOIDCIsAvailableSuccess extends UIState { } class CheckOIDCIsAvailableFailure extends FeatureFailure { - final dynamic exception; - CheckOIDCIsAvailableFailure(this.exception); + CheckOIDCIsAvailableFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/login/domain/state/delete_authority_oidc_state.dart b/lib/features/login/domain/state/delete_authority_oidc_state.dart index d75230cd46..2301bc00d1 100644 --- a/lib/features/login/domain/state/delete_authority_oidc_state.dart +++ b/lib/features/login/domain/state/delete_authority_oidc_state.dart @@ -8,9 +8,8 @@ class DeleteAuthorityOidcSuccess extends UIState { } class DeleteAuthorityOidcFailure extends FeatureFailure { - final dynamic exception; - DeleteAuthorityOidcFailure(this.exception); + DeleteAuthorityOidcFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/login/domain/state/delete_credential_state.dart b/lib/features/login/domain/state/delete_credential_state.dart index 8388cacd4e..8ba79aaeba 100644 --- a/lib/features/login/domain/state/delete_credential_state.dart +++ b/lib/features/login/domain/state/delete_credential_state.dart @@ -8,9 +8,8 @@ class DeleteCredentialSuccess extends UIState { } class DeleteCredentialFailure extends FeatureFailure { - final dynamic exception; - DeleteCredentialFailure(this.exception); + DeleteCredentialFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/login/domain/state/get_all_recent_login_url_latest_state.dart b/lib/features/login/domain/state/get_all_recent_login_url_latest_state.dart index f19b07be03..b5897edad9 100644 --- a/lib/features/login/domain/state/get_all_recent_login_url_latest_state.dart +++ b/lib/features/login/domain/state/get_all_recent_login_url_latest_state.dart @@ -13,9 +13,8 @@ class GetAllRecentLoginUrlLatestSuccess extends UIState { } class GetAllRecentLoginUrlLatestFailure extends FeatureFailure { - final dynamic exception; - GetAllRecentLoginUrlLatestFailure(this.exception); + GetAllRecentLoginUrlLatestFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/login/domain/state/get_all_recent_login_username_state.dart b/lib/features/login/domain/state/get_all_recent_login_username_state.dart index 4dea8a2d07..86c7b7c852 100644 --- a/lib/features/login/domain/state/get_all_recent_login_username_state.dart +++ b/lib/features/login/domain/state/get_all_recent_login_username_state.dart @@ -13,9 +13,8 @@ class GetAllRecentLoginUsernameLatestSuccess extends UIState { } class GetAllRecentLoginUsernameLatestFailure extends FeatureFailure { - final dynamic exception; - GetAllRecentLoginUsernameLatestFailure(this.exception); + GetAllRecentLoginUsernameLatestFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/login/domain/state/get_authentication_info_state.dart b/lib/features/login/domain/state/get_authentication_info_state.dart index 15eb835177..880614df30 100644 --- a/lib/features/login/domain/state/get_authentication_info_state.dart +++ b/lib/features/login/domain/state/get_authentication_info_state.dart @@ -19,9 +19,8 @@ class GetAuthenticationInfoSuccess extends UIState { } class GetAuthenticationInfoFailure extends FeatureFailure { - final dynamic exception; - GetAuthenticationInfoFailure(this.exception); + GetAuthenticationInfoFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/login/domain/state/get_oidc_configuration_state.dart b/lib/features/login/domain/state/get_oidc_configuration_state.dart index 771328f005..9ce7f5bba9 100644 --- a/lib/features/login/domain/state/get_oidc_configuration_state.dart +++ b/lib/features/login/domain/state/get_oidc_configuration_state.dart @@ -20,9 +20,8 @@ class GetOIDCConfigurationSuccess extends UIState { } class GetOIDCConfigurationFailure extends FeatureFailure { - final dynamic exception; - GetOIDCConfigurationFailure(this.exception); + GetOIDCConfigurationFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/login/domain/state/get_oidc_is_available_state.dart b/lib/features/login/domain/state/get_oidc_is_available_state.dart index 5ec421d78e..67136cd7c8 100644 --- a/lib/features/login/domain/state/get_oidc_is_available_state.dart +++ b/lib/features/login/domain/state/get_oidc_is_available_state.dart @@ -20,9 +20,8 @@ class GetOIDCIsAvailableSuccess extends UIState { } class GetOIDCIsAvailableFailure extends FeatureFailure { - final dynamic exception; - GetOIDCIsAvailableFailure(this.exception); + GetOIDCIsAvailableFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/login/domain/state/get_stored_oidc_configuration_state.dart b/lib/features/login/domain/state/get_stored_oidc_configuration_state.dart index f35ae2402e..76a378bee7 100644 --- a/lib/features/login/domain/state/get_stored_oidc_configuration_state.dart +++ b/lib/features/login/domain/state/get_stored_oidc_configuration_state.dart @@ -20,9 +20,8 @@ class GetStoredOidcConfigurationSuccess extends UIState { } class GetStoredOidcConfigurationFailure extends FeatureFailure { - final dynamic exception; - GetStoredOidcConfigurationFailure(this.exception); + GetStoredOidcConfigurationFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/login/domain/state/get_stored_token_oidc_state.dart b/lib/features/login/domain/state/get_stored_token_oidc_state.dart index 958f74d36c..382600c63e 100644 --- a/lib/features/login/domain/state/get_stored_token_oidc_state.dart +++ b/lib/features/login/domain/state/get_stored_token_oidc_state.dart @@ -15,9 +15,8 @@ class GetStoredTokenOidcSuccess extends UIState { } class GetStoredTokenOidcFailure extends FeatureFailure { - final dynamic exception; - GetStoredTokenOidcFailure(this.exception); + GetStoredTokenOidcFailure(dynamic exception) : super(exception: exception); @override bool? get stringify => true; diff --git a/lib/features/login/domain/state/get_token_oidc_state.dart b/lib/features/login/domain/state/get_token_oidc_state.dart index 2d2d11ff34..ea1f187d9f 100644 --- a/lib/features/login/domain/state/get_token_oidc_state.dart +++ b/lib/features/login/domain/state/get_token_oidc_state.dart @@ -21,9 +21,8 @@ class GetTokenOIDCSuccess extends UIState { } class GetTokenOIDCFailure extends FeatureFailure { - final dynamic exception; - GetTokenOIDCFailure(this.exception); + GetTokenOIDCFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/login/domain/state/refresh_token_oidc_state.dart b/lib/features/login/domain/state/refresh_token_oidc_state.dart index 70b4767fb3..3c09367d3b 100644 --- a/lib/features/login/domain/state/refresh_token_oidc_state.dart +++ b/lib/features/login/domain/state/refresh_token_oidc_state.dart @@ -12,9 +12,8 @@ class RefreshTokenOIDCSuccess extends UIState { } class RefreshTokenOIDCFailure extends FeatureFailure { - final dynamic exception; - RefreshTokenOIDCFailure(this.exception); + RefreshTokenOIDCFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/login/domain/state/save_recent_login_url_state.dart b/lib/features/login/domain/state/save_recent_login_url_state.dart index 4932b9ac79..cb8405d7a4 100644 --- a/lib/features/login/domain/state/save_recent_login_url_state.dart +++ b/lib/features/login/domain/state/save_recent_login_url_state.dart @@ -10,9 +10,8 @@ class SaveRecentLoginUrlSuccess extends UIState { } class SaveRecentLoginUrlFailed extends FeatureFailure { - final dynamic exception; - SaveRecentLoginUrlFailed(this.exception); + SaveRecentLoginUrlFailed(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/login/domain/state/save_recent_login_username_state.dart b/lib/features/login/domain/state/save_recent_login_username_state.dart index 5ae227914c..f0929e980b 100644 --- a/lib/features/login/domain/state/save_recent_login_username_state.dart +++ b/lib/features/login/domain/state/save_recent_login_username_state.dart @@ -10,9 +10,8 @@ class SaveRecentLoginUsernameSuccess extends UIState { } class SaveRecentLoginUsernameFailed extends FeatureFailure { - final dynamic exception; - SaveRecentLoginUsernameFailed(this.exception); + SaveRecentLoginUsernameFailed(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/login/domain/state/update_authentication_account_state.dart b/lib/features/login/domain/state/update_authentication_account_state.dart index b0aa0540fa..56535e7e70 100644 --- a/lib/features/login/domain/state/update_authentication_account_state.dart +++ b/lib/features/login/domain/state/update_authentication_account_state.dart @@ -12,9 +12,8 @@ class UpdateAuthenticationAccountSuccess extends UIState { } class UpdateAuthenticationAccountFailure extends FeatureFailure { - final dynamic exception; - UpdateAuthenticationAccountFailure(this.exception); + UpdateAuthenticationAccountFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox/domain/state/create_new_mailbox_state.dart b/lib/features/mailbox/domain/state/create_new_mailbox_state.dart index 91c0e270ad..3db621ab42 100644 --- a/lib/features/mailbox/domain/state/create_new_mailbox_state.dart +++ b/lib/features/mailbox/domain/state/create_new_mailbox_state.dart @@ -19,9 +19,8 @@ class CreateNewMailboxSuccess extends UIActionState { } class CreateNewMailboxFailure extends FeatureFailure { - final dynamic exception; - CreateNewMailboxFailure(this.exception); + CreateNewMailboxFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox/domain/state/delete_multiple_mailbox_state.dart b/lib/features/mailbox/domain/state/delete_multiple_mailbox_state.dart index 88182b3b83..31a60dcf04 100644 --- a/lib/features/mailbox/domain/state/delete_multiple_mailbox_state.dart +++ b/lib/features/mailbox/domain/state/delete_multiple_mailbox_state.dart @@ -41,9 +41,8 @@ class DeleteMultipleMailboxAllFailure extends FeatureFailure { } class DeleteMultipleMailboxFailure extends FeatureFailure { - final dynamic exception; - DeleteMultipleMailboxFailure(this.exception); + DeleteMultipleMailboxFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox/domain/state/get_all_mailboxes_state.dart b/lib/features/mailbox/domain/state/get_all_mailboxes_state.dart index 9274f46b20..be4b00d1e9 100644 --- a/lib/features/mailbox/domain/state/get_all_mailboxes_state.dart +++ b/lib/features/mailbox/domain/state/get_all_mailboxes_state.dart @@ -16,9 +16,8 @@ class GetAllMailboxSuccess extends UIState { } class GetAllMailboxFailure extends FeatureFailure { - final dynamic exception; - GetAllMailboxFailure(this.exception); + GetAllMailboxFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox/domain/state/mark_as_mailbox_read_state.dart b/lib/features/mailbox/domain/state/mark_as_mailbox_read_state.dart index 483e84b979..5a4866b6f3 100644 --- a/lib/features/mailbox/domain/state/mark_as_mailbox_read_state.dart +++ b/lib/features/mailbox/domain/state/mark_as_mailbox_read_state.dart @@ -68,9 +68,8 @@ class MarkAsMailboxReadAllFailure extends FeatureFailure { } class MarkAsMailboxReadFailure extends FeatureFailure { - final dynamic exception; - MarkAsMailboxReadFailure(this.exception); + MarkAsMailboxReadFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox/domain/state/move_mailbox_state.dart b/lib/features/mailbox/domain/state/move_mailbox_state.dart index b4648d842c..97f658d15d 100644 --- a/lib/features/mailbox/domain/state/move_mailbox_state.dart +++ b/lib/features/mailbox/domain/state/move_mailbox_state.dart @@ -34,9 +34,8 @@ class MoveMailboxSuccess extends UIActionState { } class MoveMailboxFailure extends FeatureFailure { - final dynamic exception; - MoveMailboxFailure(this.exception); + MoveMailboxFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox/domain/state/refresh_changes_all_mailboxes_state.dart b/lib/features/mailbox/domain/state/refresh_changes_all_mailboxes_state.dart index 6e19974742..686e268007 100644 --- a/lib/features/mailbox/domain/state/refresh_changes_all_mailboxes_state.dart +++ b/lib/features/mailbox/domain/state/refresh_changes_all_mailboxes_state.dart @@ -16,9 +16,8 @@ class RefreshChangesAllMailboxSuccess extends UIState { } class RefreshChangesAllMailboxFailure extends FeatureFailure { - final dynamic exception; - RefreshChangesAllMailboxFailure(this.exception); + RefreshChangesAllMailboxFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox/domain/state/rename_mailbox_state.dart b/lib/features/mailbox/domain/state/rename_mailbox_state.dart index b4e046c4de..bd0c61169e 100644 --- a/lib/features/mailbox/domain/state/rename_mailbox_state.dart +++ b/lib/features/mailbox/domain/state/rename_mailbox_state.dart @@ -16,9 +16,8 @@ class RenameMailboxSuccess extends UIActionState { } class RenameMailboxFailure extends FeatureFailure { - final dynamic exception; - RenameMailboxFailure(this.exception); + RenameMailboxFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox/domain/state/search_mailbox_state.dart b/lib/features/mailbox/domain/state/search_mailbox_state.dart index 1a90df1ea0..44e86f1e84 100644 --- a/lib/features/mailbox/domain/state/search_mailbox_state.dart +++ b/lib/features/mailbox/domain/state/search_mailbox_state.dart @@ -14,9 +14,8 @@ class SearchMailboxSuccess extends UIState { } class SearchMailboxFailure extends FeatureFailure { - final dynamic exception; - SearchMailboxFailure(this.exception); + SearchMailboxFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox/domain/state/subscribe_mailbox_state.dart b/lib/features/mailbox/domain/state/subscribe_mailbox_state.dart index 1901736ad9..ac0bc2139a 100644 --- a/lib/features/mailbox/domain/state/subscribe_mailbox_state.dart +++ b/lib/features/mailbox/domain/state/subscribe_mailbox_state.dart @@ -28,9 +28,8 @@ class SubscribeMailboxSuccess extends UIActionState { } class SubscribeMailboxFailure extends FeatureFailure { - final dynamic exception; - SubscribeMailboxFailure(this.exception); + SubscribeMailboxFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox/domain/state/subscribe_multiple_mailbox_state.dart b/lib/features/mailbox/domain/state/subscribe_multiple_mailbox_state.dart index e8af12fbc8..9257c3337d 100644 --- a/lib/features/mailbox/domain/state/subscribe_multiple_mailbox_state.dart +++ b/lib/features/mailbox/domain/state/subscribe_multiple_mailbox_state.dart @@ -66,9 +66,8 @@ class SubscribeMultipleMailboxAllFailure extends FeatureFailure { } class SubscribeMultipleMailboxFailure extends FeatureFailure { - final dynamic exception; - SubscribeMultipleMailboxFailure(this.exception); + SubscribeMultipleMailboxFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox_creator/domain/state/verify_name_view_state.dart b/lib/features/mailbox_creator/domain/state/verify_name_view_state.dart index 93e9b2a77f..6122198ef4 100644 --- a/lib/features/mailbox_creator/domain/state/verify_name_view_state.dart +++ b/lib/features/mailbox_creator/domain/state/verify_name_view_state.dart @@ -9,9 +9,9 @@ class VerifyNameViewState extends UIState { } class VerifyNameFailure extends FeatureFailure { - final dynamic exception; - VerifyNameFailure(this.exception); + VerifyNameFailure(dynamic exception) : super(exception: exception); + @override List get props => [exception]; } \ No newline at end of file diff --git a/lib/features/mailbox_dashboard/domain/state/delete_last_time_dismissed_spam_reported_state.dart b/lib/features/mailbox_dashboard/domain/state/delete_last_time_dismissed_spam_reported_state.dart index e22f8de0db..71248f0e4e 100644 --- a/lib/features/mailbox_dashboard/domain/state/delete_last_time_dismissed_spam_reported_state.dart +++ b/lib/features/mailbox_dashboard/domain/state/delete_last_time_dismissed_spam_reported_state.dart @@ -12,9 +12,8 @@ class DeleteLastTimeDismissedSpamReportedSuccess extends UIState { } class DeleteLastTimeDismissedSpamReportedFailure extends FeatureFailure { - final dynamic exception; - DeleteLastTimeDismissedSpamReportedFailure(this.exception); + DeleteLastTimeDismissedSpamReportedFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox_dashboard/domain/state/delete_spam_report_state.dart b/lib/features/mailbox_dashboard/domain/state/delete_spam_report_state.dart index 5055347fa9..a80d7cb8c6 100644 --- a/lib/features/mailbox_dashboard/domain/state/delete_spam_report_state.dart +++ b/lib/features/mailbox_dashboard/domain/state/delete_spam_report_state.dart @@ -12,9 +12,8 @@ class DeleteSpamReportStateSuccess extends UIState { } class DeleteSpamReportStateFailure extends FeatureFailure { - final dynamic exception; - DeleteSpamReportStateFailure(this.exception); + DeleteSpamReportStateFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox_dashboard/domain/state/get_all_recent_search_latest_state.dart b/lib/features/mailbox_dashboard/domain/state/get_all_recent_search_latest_state.dart index 276df975e6..126133bd32 100644 --- a/lib/features/mailbox_dashboard/domain/state/get_all_recent_search_latest_state.dart +++ b/lib/features/mailbox_dashboard/domain/state/get_all_recent_search_latest_state.dart @@ -12,9 +12,8 @@ class GetAllRecentSearchLatestSuccess extends UIState { } class GetAllRecentSearchLatestFailure extends FeatureFailure { - final dynamic exception; - GetAllRecentSearchLatestFailure(this.exception); + GetAllRecentSearchLatestFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox_dashboard/domain/state/get_app_dashboard_configuration_state.dart b/lib/features/mailbox_dashboard/domain/state/get_app_dashboard_configuration_state.dart index 188900a08e..9aac82bc8b 100644 --- a/lib/features/mailbox_dashboard/domain/state/get_app_dashboard_configuration_state.dart +++ b/lib/features/mailbox_dashboard/domain/state/get_app_dashboard_configuration_state.dart @@ -15,9 +15,8 @@ class GetAppDashboardConfigurationSuccess extends UIState { } class GetAppDashboardConfigurationFailure extends FeatureFailure { - final dynamic exception; - GetAppDashboardConfigurationFailure(this.exception); + GetAppDashboardConfigurationFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox_dashboard/domain/state/get_composer_cache_state.dart b/lib/features/mailbox_dashboard/domain/state/get_composer_cache_state.dart index 62cfd1044f..c1dadaa2b3 100644 --- a/lib/features/mailbox_dashboard/domain/state/get_composer_cache_state.dart +++ b/lib/features/mailbox_dashboard/domain/state/get_composer_cache_state.dart @@ -12,9 +12,8 @@ class GetComposerCacheSuccess extends UIState { } class GetComposerCacheFailure extends FeatureFailure { - final dynamic exception; - GetComposerCacheFailure(this.exception); + GetComposerCacheFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox_dashboard/domain/state/get_number_of_unread_spam_emails_state.dart b/lib/features/mailbox_dashboard/domain/state/get_number_of_unread_spam_emails_state.dart index a74170598d..92939ca4be 100644 --- a/lib/features/mailbox_dashboard/domain/state/get_number_of_unread_spam_emails_state.dart +++ b/lib/features/mailbox_dashboard/domain/state/get_number_of_unread_spam_emails_state.dart @@ -19,9 +19,8 @@ class InvalidSpamReportCondition extends FeatureFailure { } class GetUnreadSpamMailboxFailure extends FeatureFailure { - final dynamic exception; - GetUnreadSpamMailboxFailure(this.exception); + GetUnreadSpamMailboxFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox_dashboard/domain/state/get_spam_report_state.dart b/lib/features/mailbox_dashboard/domain/state/get_spam_report_state.dart index 75e9093319..899ab7db91 100644 --- a/lib/features/mailbox_dashboard/domain/state/get_spam_report_state.dart +++ b/lib/features/mailbox_dashboard/domain/state/get_spam_report_state.dart @@ -14,9 +14,8 @@ class GetSpamReportStateSuccess extends UIState { } class GetSpamReportStateFailure extends FeatureFailure { - final dynamic exception; - GetSpamReportStateFailure(this.exception); + GetSpamReportStateFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox_dashboard/domain/state/get_user_profile_state.dart b/lib/features/mailbox_dashboard/domain/state/get_user_profile_state.dart index 3ad68ded78..41b361958e 100644 --- a/lib/features/mailbox_dashboard/domain/state/get_user_profile_state.dart +++ b/lib/features/mailbox_dashboard/domain/state/get_user_profile_state.dart @@ -11,9 +11,8 @@ class GetUserProfileSuccess extends UIState { } class GetUserProfileFailure extends FeatureFailure { - final dynamic exception; - GetUserProfileFailure(this.exception); + GetUserProfileFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox_dashboard/domain/state/quick_search_email_state.dart b/lib/features/mailbox_dashboard/domain/state/quick_search_email_state.dart index 713460a7d8..28136b0ef6 100644 --- a/lib/features/mailbox_dashboard/domain/state/quick_search_email_state.dart +++ b/lib/features/mailbox_dashboard/domain/state/quick_search_email_state.dart @@ -12,9 +12,8 @@ class QuickSearchEmailSuccess extends UIState { } class QuickSearchEmailFailure extends FeatureFailure { - final dynamic exception; - QuickSearchEmailFailure(this.exception); + QuickSearchEmailFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox_dashboard/domain/state/remove_composer_cache_state.dart b/lib/features/mailbox_dashboard/domain/state/remove_composer_cache_state.dart index 5ac492371e..ff25a5617d 100644 --- a/lib/features/mailbox_dashboard/domain/state/remove_composer_cache_state.dart +++ b/lib/features/mailbox_dashboard/domain/state/remove_composer_cache_state.dart @@ -9,9 +9,8 @@ class RemoveComposerCacheSuccess extends UIState { } class RemoveComposerCacheFailure extends FeatureFailure { - final dynamic exception; - RemoveComposerCacheFailure(this.exception); + RemoveComposerCacheFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox_dashboard/domain/state/remove_email_drafts_state.dart b/lib/features/mailbox_dashboard/domain/state/remove_email_drafts_state.dart index b9f5343358..600e7d766a 100644 --- a/lib/features/mailbox_dashboard/domain/state/remove_email_drafts_state.dart +++ b/lib/features/mailbox_dashboard/domain/state/remove_email_drafts_state.dart @@ -14,9 +14,8 @@ class RemoveEmailDraftsSuccess extends UIActionState { } class RemoveEmailDraftsFailure extends FeatureFailure { - final dynamic exception; - RemoveEmailDraftsFailure(this.exception); + RemoveEmailDraftsFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox_dashboard/domain/state/save_composer_cache_state.dart b/lib/features/mailbox_dashboard/domain/state/save_composer_cache_state.dart index adf4ebc358..4fa1bfdcc7 100644 --- a/lib/features/mailbox_dashboard/domain/state/save_composer_cache_state.dart +++ b/lib/features/mailbox_dashboard/domain/state/save_composer_cache_state.dart @@ -9,9 +9,8 @@ class SaveComposerCacheSuccess extends UIState { } class SaveComposerCacheFailure extends FeatureFailure { - final dynamic exception; - SaveComposerCacheFailure(this.exception); + SaveComposerCacheFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox_dashboard/domain/state/save_recent_search_state.dart b/lib/features/mailbox_dashboard/domain/state/save_recent_search_state.dart index 62d77c2b80..dfd7c26505 100644 --- a/lib/features/mailbox_dashboard/domain/state/save_recent_search_state.dart +++ b/lib/features/mailbox_dashboard/domain/state/save_recent_search_state.dart @@ -9,9 +9,8 @@ class SaveRecentSearchSuccess extends UIState { } class SaveRecentSearchFailure extends FeatureFailure { - final dynamic exception; - SaveRecentSearchFailure(this.exception); + SaveRecentSearchFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox_dashboard/domain/state/store_last_time_dismissed_spam_reported_state.dart b/lib/features/mailbox_dashboard/domain/state/store_last_time_dismissed_spam_reported_state.dart index d8b1eddba2..2facbb01f1 100644 --- a/lib/features/mailbox_dashboard/domain/state/store_last_time_dismissed_spam_reported_state.dart +++ b/lib/features/mailbox_dashboard/domain/state/store_last_time_dismissed_spam_reported_state.dart @@ -12,9 +12,8 @@ class StoreLastTimeDismissedSpamReportSuccess extends UIState { } class StoreLastTimeDismissedSpamReportFailure extends FeatureFailure { - final dynamic exception; - StoreLastTimeDismissedSpamReportFailure(this.exception); + StoreLastTimeDismissedSpamReportFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox_dashboard/domain/state/store_spam_report_state.dart b/lib/features/mailbox_dashboard/domain/state/store_spam_report_state.dart index b6240f5356..c7d421ab61 100644 --- a/lib/features/mailbox_dashboard/domain/state/store_spam_report_state.dart +++ b/lib/features/mailbox_dashboard/domain/state/store_spam_report_state.dart @@ -14,9 +14,8 @@ class StoreSpamReportStateSuccess extends UIState { } class StoreSpamReportStateFailure extends FeatureFailure { - final dynamic exception; - StoreSpamReportStateFailure(this.exception); + StoreSpamReportStateFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/mailbox_dashboard/presentation/mailbox_dashboard_view.dart b/lib/features/mailbox_dashboard/presentation/mailbox_dashboard_view.dart index 569bc19399..e1af349057 100644 --- a/lib/features/mailbox_dashboard/presentation/mailbox_dashboard_view.dart +++ b/lib/features/mailbox_dashboard/presentation/mailbox_dashboard_view.dart @@ -61,7 +61,7 @@ class MailboxDashBoardView extends BaseMailboxDashBoardView { children: [ SizedBox( width: ResponsiveUtils.defaultSizeLeftMenuMobile, - child: _buildScaffoldHaveDrawer(body: SendingQueueView())), + child: _buildScaffoldHaveDrawer(body: const SendingQueueView())), Expanded(child: EmailView()), ], ); @@ -70,7 +70,7 @@ class MailboxDashBoardView extends BaseMailboxDashBoardView { desktop: bodyView, tabletLarge: bodyView, landscapeTablet: bodyView, - mobile: _buildScaffoldHaveDrawer(body: SendingQueueView())); + mobile: _buildScaffoldHaveDrawer(body: const SendingQueueView())); case DashboardRoutes.waiting: return const Center( child: SizedBox( diff --git a/lib/features/manage_account/domain/state/add_recipient_in_forwarding_state.dart b/lib/features/manage_account/domain/state/add_recipient_in_forwarding_state.dart index acb36f6fc9..181326db62 100644 --- a/lib/features/manage_account/domain/state/add_recipient_in_forwarding_state.dart +++ b/lib/features/manage_account/domain/state/add_recipient_in_forwarding_state.dart @@ -12,9 +12,8 @@ class AddRecipientsInForwardingSuccess extends UIState { } class AddRecipientsInForwardingFailure extends FeatureFailure { - final dynamic exception; - AddRecipientsInForwardingFailure(this.exception); + AddRecipientsInForwardingFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/manage_account/domain/state/create_new_default_identity_state.dart b/lib/features/manage_account/domain/state/create_new_default_identity_state.dart index 639c08b78e..e00bb43ba5 100644 --- a/lib/features/manage_account/domain/state/create_new_default_identity_state.dart +++ b/lib/features/manage_account/domain/state/create_new_default_identity_state.dart @@ -14,9 +14,8 @@ class CreateNewDefaultIdentitySuccess extends UIState { } class CreateNewDefaultIdentityFailure extends FeatureFailure { - final dynamic exception; - CreateNewDefaultIdentityFailure(this.exception); + CreateNewDefaultIdentityFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/manage_account/domain/state/create_new_identity_state.dart b/lib/features/manage_account/domain/state/create_new_identity_state.dart index 6483b5052f..9c353dcdf0 100644 --- a/lib/features/manage_account/domain/state/create_new_identity_state.dart +++ b/lib/features/manage_account/domain/state/create_new_identity_state.dart @@ -14,9 +14,8 @@ class CreateNewIdentitySuccess extends UIState { } class CreateNewIdentityFailure extends FeatureFailure { - final dynamic exception; - CreateNewIdentityFailure(this.exception); + CreateNewIdentityFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/manage_account/domain/state/create_new_rule_filter_state.dart b/lib/features/manage_account/domain/state/create_new_rule_filter_state.dart index b1fc64e25b..8ea9ec9ed2 100644 --- a/lib/features/manage_account/domain/state/create_new_rule_filter_state.dart +++ b/lib/features/manage_account/domain/state/create_new_rule_filter_state.dart @@ -13,9 +13,8 @@ class CreateNewRuleFilterSuccess extends UIState { } class CreateNewRuleFilterFailure extends FeatureFailure { - final dynamic exception; - CreateNewRuleFilterFailure(this.exception); + CreateNewRuleFilterFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/manage_account/domain/state/delete_email_rule_state.dart b/lib/features/manage_account/domain/state/delete_email_rule_state.dart index 82f6157a1b..cbd9ea5ce7 100644 --- a/lib/features/manage_account/domain/state/delete_email_rule_state.dart +++ b/lib/features/manage_account/domain/state/delete_email_rule_state.dart @@ -11,9 +11,8 @@ class DeleteEmailRuleSuccess extends UIState { } class DeleteEmailRuleFailure extends FeatureFailure { - final dynamic exception; - DeleteEmailRuleFailure(this.exception); + DeleteEmailRuleFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/manage_account/domain/state/delete_identity_state.dart b/lib/features/manage_account/domain/state/delete_identity_state.dart index e4beea8f40..66c00e7038 100644 --- a/lib/features/manage_account/domain/state/delete_identity_state.dart +++ b/lib/features/manage_account/domain/state/delete_identity_state.dart @@ -11,9 +11,8 @@ class DeleteIdentitySuccess extends UIState { } class DeleteIdentityFailure extends FeatureFailure { - final dynamic exception; - DeleteIdentityFailure(this.exception); + DeleteIdentityFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/manage_account/domain/state/delete_recipient_in_forwarding_state.dart b/lib/features/manage_account/domain/state/delete_recipient_in_forwarding_state.dart index 2af7df7e2f..9d1c1b1c25 100644 --- a/lib/features/manage_account/domain/state/delete_recipient_in_forwarding_state.dart +++ b/lib/features/manage_account/domain/state/delete_recipient_in_forwarding_state.dart @@ -20,9 +20,8 @@ class DeleteRecipientInForwardingSuccess extends UIState { } class DeleteRecipientInForwardingFailure extends FeatureFailure { - final dynamic exception; - DeleteRecipientInForwardingFailure(this.exception); + DeleteRecipientInForwardingFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/manage_account/domain/state/edit_default_identity_state.dart b/lib/features/manage_account/domain/state/edit_default_identity_state.dart index 53537d6e3d..e7770da8f0 100644 --- a/lib/features/manage_account/domain/state/edit_default_identity_state.dart +++ b/lib/features/manage_account/domain/state/edit_default_identity_state.dart @@ -12,9 +12,8 @@ class EditDefaultIdentitySuccess extends EditIdentitySuccess { } class EditDefaultIdentityFailure extends FeatureFailure { - final dynamic exception; - EditDefaultIdentityFailure(this.exception); + EditDefaultIdentityFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/manage_account/domain/state/edit_email_rule_filter_state.dart b/lib/features/manage_account/domain/state/edit_email_rule_filter_state.dart index bb0a7f909b..79775a802c 100644 --- a/lib/features/manage_account/domain/state/edit_email_rule_filter_state.dart +++ b/lib/features/manage_account/domain/state/edit_email_rule_filter_state.dart @@ -13,9 +13,8 @@ class EditEmailRuleFilterSuccess extends UIState { } class EditEmailRuleFilterFailure extends FeatureFailure { - final dynamic exception; - EditEmailRuleFilterFailure(this.exception); + EditEmailRuleFilterFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/manage_account/domain/state/edit_identity_state.dart b/lib/features/manage_account/domain/state/edit_identity_state.dart index e598cd87fa..4a417f8921 100644 --- a/lib/features/manage_account/domain/state/edit_identity_state.dart +++ b/lib/features/manage_account/domain/state/edit_identity_state.dart @@ -11,9 +11,8 @@ class EditIdentitySuccess extends UIState { } class EditIdentityFailure extends FeatureFailure { - final dynamic exception; - EditIdentityFailure(this.exception); + EditIdentityFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/manage_account/domain/state/edit_local_copy_in_forwarding_state.dart b/lib/features/manage_account/domain/state/edit_local_copy_in_forwarding_state.dart index e7699ce362..426238eb32 100644 --- a/lib/features/manage_account/domain/state/edit_local_copy_in_forwarding_state.dart +++ b/lib/features/manage_account/domain/state/edit_local_copy_in_forwarding_state.dart @@ -12,9 +12,8 @@ class EditLocalCopyInForwardingSuccess extends UIState { } class EditLocalCopyInForwardingFailure extends FeatureFailure { - final dynamic exception; - EditLocalCopyInForwardingFailure(this.exception); + EditLocalCopyInForwardingFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/manage_account/domain/state/get_all_identities_state.dart b/lib/features/manage_account/domain/state/get_all_identities_state.dart index 0530a13f9d..de3a14f03e 100644 --- a/lib/features/manage_account/domain/state/get_all_identities_state.dart +++ b/lib/features/manage_account/domain/state/get_all_identities_state.dart @@ -15,9 +15,8 @@ class GetAllIdentitiesSuccess extends UIState { } class GetAllIdentitiesFailure extends FeatureFailure { - final dynamic exception; - GetAllIdentitiesFailure(this.exception); + GetAllIdentitiesFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/manage_account/domain/state/get_all_rules_state.dart b/lib/features/manage_account/domain/state/get_all_rules_state.dart index 05a217347e..bd138f80d3 100644 --- a/lib/features/manage_account/domain/state/get_all_rules_state.dart +++ b/lib/features/manage_account/domain/state/get_all_rules_state.dart @@ -11,9 +11,8 @@ class GetAllRulesSuccess extends UIState { } class GetAllRulesFailure extends FeatureFailure { - final dynamic exception; - GetAllRulesFailure(this.exception); + GetAllRulesFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/manage_account/domain/state/get_all_vacation_state.dart b/lib/features/manage_account/domain/state/get_all_vacation_state.dart index 0756013537..d0330892ed 100644 --- a/lib/features/manage_account/domain/state/get_all_vacation_state.dart +++ b/lib/features/manage_account/domain/state/get_all_vacation_state.dart @@ -20,9 +20,8 @@ class GetAllVacationSuccess extends UIState { } class GetAllVacationFailure extends FeatureFailure { - final dynamic exception; - GetAllVacationFailure(this.exception); + GetAllVacationFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/manage_account/domain/state/get_forward_state.dart b/lib/features/manage_account/domain/state/get_forward_state.dart index a29f77bd98..da4fe676ca 100644 --- a/lib/features/manage_account/domain/state/get_forward_state.dart +++ b/lib/features/manage_account/domain/state/get_forward_state.dart @@ -11,9 +11,8 @@ class GetForwardSuccess extends UIState { } class GetForwardFailure extends FeatureFailure { - final dynamic exception; - GetForwardFailure(this.exception); + GetForwardFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/manage_account/domain/state/log_out_oidc_state.dart b/lib/features/manage_account/domain/state/log_out_oidc_state.dart index e1c63299b9..287893c500 100644 --- a/lib/features/manage_account/domain/state/log_out_oidc_state.dart +++ b/lib/features/manage_account/domain/state/log_out_oidc_state.dart @@ -11,9 +11,8 @@ class LogoutOidcSuccess extends UIState { } class LogoutOidcFailure extends FeatureFailure { - final dynamic exception; - LogoutOidcFailure(this.exception); + LogoutOidcFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/manage_account/domain/state/save_language_state.dart b/lib/features/manage_account/domain/state/save_language_state.dart index c71b3bc925..a4356c6264 100644 --- a/lib/features/manage_account/domain/state/save_language_state.dart +++ b/lib/features/manage_account/domain/state/save_language_state.dart @@ -21,9 +21,8 @@ class SaveLanguageSuccess extends UIState { } class SaveLanguageFailure extends FeatureFailure { - final dynamic exception; - SaveLanguageFailure(this.exception); + SaveLanguageFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/manage_account/domain/state/update_vacation_state.dart b/lib/features/manage_account/domain/state/update_vacation_state.dart index cefd58cf2d..7149745970 100644 --- a/lib/features/manage_account/domain/state/update_vacation_state.dart +++ b/lib/features/manage_account/domain/state/update_vacation_state.dart @@ -20,9 +20,8 @@ class UpdateVacationSuccess extends UIState { } class UpdateVacationFailure extends FeatureFailure { - final dynamic exception; - UpdateVacationFailure(this.exception); + UpdateVacationFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/push_notification/domain/state/delete_email_state_to_refresh_state.dart b/lib/features/push_notification/domain/state/delete_email_state_to_refresh_state.dart index 4f8d2789cb..2735a9c399 100644 --- a/lib/features/push_notification/domain/state/delete_email_state_to_refresh_state.dart +++ b/lib/features/push_notification/domain/state/delete_email_state_to_refresh_state.dart @@ -13,9 +13,8 @@ class DeleteEmailStateToRefreshSuccess extends UIState { } class DeleteEmailStateToRefreshFailure extends FeatureFailure { - final dynamic exception; - DeleteEmailStateToRefreshFailure(this.exception); + DeleteEmailStateToRefreshFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/push_notification/domain/state/delete_mailbox_state_to_refresh_state.dart b/lib/features/push_notification/domain/state/delete_mailbox_state_to_refresh_state.dart index 0f1b0fa3de..cb0415e2a9 100644 --- a/lib/features/push_notification/domain/state/delete_mailbox_state_to_refresh_state.dart +++ b/lib/features/push_notification/domain/state/delete_mailbox_state_to_refresh_state.dart @@ -13,9 +13,8 @@ class DeleteMailboxStateToRefreshSuccess extends UIState { } class DeleteMailboxStateToRefreshFailure extends FeatureFailure { - final dynamic exception; - DeleteMailboxStateToRefreshFailure(this.exception); + DeleteMailboxStateToRefreshFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/push_notification/domain/state/destroy_subscription_state.dart b/lib/features/push_notification/domain/state/destroy_subscription_state.dart index 8fbe00669a..54c0ae172a 100644 --- a/lib/features/push_notification/domain/state/destroy_subscription_state.dart +++ b/lib/features/push_notification/domain/state/destroy_subscription_state.dart @@ -15,9 +15,8 @@ class DestroySubscriptionSuccess extends UIState { } class DestroySubscriptionFailure extends FeatureFailure { - final dynamic exception; - DestroySubscriptionFailure(this.exception); + DestroySubscriptionFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/push_notification/domain/state/get_email_state_to_refresh_state.dart b/lib/features/push_notification/domain/state/get_email_state_to_refresh_state.dart index 09572f1f4b..8bae5c3dff 100644 --- a/lib/features/push_notification/domain/state/get_email_state_to_refresh_state.dart +++ b/lib/features/push_notification/domain/state/get_email_state_to_refresh_state.dart @@ -16,9 +16,8 @@ class GetEmailStateToRefreshSuccess extends UIState { } class GetEmailStateToRefreshFailure extends FeatureFailure { - final dynamic exception; - GetEmailStateToRefreshFailure(this.exception); + GetEmailStateToRefreshFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/push_notification/domain/state/get_fcm_subscription_local.dart b/lib/features/push_notification/domain/state/get_fcm_subscription_local.dart index 28441ead2a..c145d90480 100644 --- a/lib/features/push_notification/domain/state/get_fcm_subscription_local.dart +++ b/lib/features/push_notification/domain/state/get_fcm_subscription_local.dart @@ -16,9 +16,8 @@ class GetFCMSubscriptionLocalSuccess extends UIState { } class GetFCMSubscriptionLocalFailure extends FeatureFailure { - final dynamic exception; - GetFCMSubscriptionLocalFailure(this.exception); + GetFCMSubscriptionLocalFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/push_notification/domain/state/get_firebase_subscription_state.dart b/lib/features/push_notification/domain/state/get_firebase_subscription_state.dart index 1bc799cc47..5ba73559b6 100644 --- a/lib/features/push_notification/domain/state/get_firebase_subscription_state.dart +++ b/lib/features/push_notification/domain/state/get_firebase_subscription_state.dart @@ -16,9 +16,8 @@ class GetFirebaseSubscriptionSuccess extends UIState { } class GetFirebaseSubscriptionFailure extends FeatureFailure { - final dynamic exception; - GetFirebaseSubscriptionFailure(this.exception); + GetFirebaseSubscriptionFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/push_notification/domain/state/get_mailbox_state_to_refresh_state.dart b/lib/features/push_notification/domain/state/get_mailbox_state_to_refresh_state.dart index 92630a008a..a2d7187a47 100644 --- a/lib/features/push_notification/domain/state/get_mailbox_state_to_refresh_state.dart +++ b/lib/features/push_notification/domain/state/get_mailbox_state_to_refresh_state.dart @@ -16,9 +16,8 @@ class GetMailboxStateToRefreshSuccess extends UIState { } class GetMailboxStateToRefreshFailure extends FeatureFailure { - final dynamic exception; - GetMailboxStateToRefreshFailure(this.exception); + GetMailboxStateToRefreshFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/push_notification/domain/state/get_stored_email_delivery_state.dart b/lib/features/push_notification/domain/state/get_stored_email_delivery_state.dart index df2b43fd26..2a5d9eaff8 100644 --- a/lib/features/push_notification/domain/state/get_stored_email_delivery_state.dart +++ b/lib/features/push_notification/domain/state/get_stored_email_delivery_state.dart @@ -16,9 +16,8 @@ class GetStoredEmailDeliveryStateSuccess extends UIState { } class GetStoredEmailDeliveryStateFailure extends FeatureFailure { - final dynamic exception; - GetStoredEmailDeliveryStateFailure(this.exception); + GetStoredEmailDeliveryStateFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/push_notification/domain/state/register_new_token_state.dart b/lib/features/push_notification/domain/state/register_new_token_state.dart index 8af418d865..2d0b1c2f84 100644 --- a/lib/features/push_notification/domain/state/register_new_token_state.dart +++ b/lib/features/push_notification/domain/state/register_new_token_state.dart @@ -16,9 +16,8 @@ class RegisterNewTokenSuccess extends UIState { } class RegisterNewTokenFailure extends FeatureFailure { - final dynamic exception; - RegisterNewTokenFailure(this.exception); + RegisterNewTokenFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/push_notification/domain/state/store_email_delivery_state.dart b/lib/features/push_notification/domain/state/store_email_delivery_state.dart index 6380926298..4e24149456 100644 --- a/lib/features/push_notification/domain/state/store_email_delivery_state.dart +++ b/lib/features/push_notification/domain/state/store_email_delivery_state.dart @@ -13,9 +13,8 @@ class StoreEmailDeliveryStateSuccess extends UIState { } class StoreEmailDeliveryStateFailure extends FeatureFailure { - final dynamic exception; - StoreEmailDeliveryStateFailure(this.exception); + StoreEmailDeliveryStateFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/push_notification/domain/state/store_email_state_to_refresh_state.dart b/lib/features/push_notification/domain/state/store_email_state_to_refresh_state.dart index 75a5b567aa..3d2bbd88b7 100644 --- a/lib/features/push_notification/domain/state/store_email_state_to_refresh_state.dart +++ b/lib/features/push_notification/domain/state/store_email_state_to_refresh_state.dart @@ -13,9 +13,8 @@ class StoreEmailStateToRefreshSuccess extends UIState { } class StoreEmailStateToRefreshFailure extends FeatureFailure { - final dynamic exception; - StoreEmailStateToRefreshFailure(this.exception); + StoreEmailStateToRefreshFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/push_notification/domain/state/store_mailbox_state_to_refresh_state.dart b/lib/features/push_notification/domain/state/store_mailbox_state_to_refresh_state.dart index fc48f5240d..1b15710cea 100644 --- a/lib/features/push_notification/domain/state/store_mailbox_state_to_refresh_state.dart +++ b/lib/features/push_notification/domain/state/store_mailbox_state_to_refresh_state.dart @@ -13,9 +13,8 @@ class StoreMailboxStateToRefreshSuccess extends UIState { } class StoreMailboxStateToRefreshFailure extends FeatureFailure { - final dynamic exception; - StoreMailboxStateToRefreshFailure(this.exception); + StoreMailboxStateToRefreshFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/push_notification/domain/state/store_subscription_state.dart b/lib/features/push_notification/domain/state/store_subscription_state.dart index 341f57e9d9..dfc22b38d0 100644 --- a/lib/features/push_notification/domain/state/store_subscription_state.dart +++ b/lib/features/push_notification/domain/state/store_subscription_state.dart @@ -13,9 +13,8 @@ class StoreSubscriptionSuccess extends UIState { } class StoreSubscriptionFailure extends FeatureFailure { - final dynamic exception; - StoreSubscriptionFailure(this.exception); + StoreSubscriptionFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/quotas/domain/state/get_quotas_state.dart b/lib/features/quotas/domain/state/get_quotas_state.dart index 7c2ff2e435..2d5e6819f0 100644 --- a/lib/features/quotas/domain/state/get_quotas_state.dart +++ b/lib/features/quotas/domain/state/get_quotas_state.dart @@ -16,9 +16,8 @@ class GetQuotasSuccess extends UIState { } class GetQuotasFailure extends FeatureFailure { - final dynamic exception; - GetQuotasFailure(this.exception); + GetQuotasFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/search/email/domain/state/refresh_changes_search_email_state.dart b/lib/features/search/email/domain/state/refresh_changes_search_email_state.dart index 8d3339c40e..65a371f2e5 100644 --- a/lib/features/search/email/domain/state/refresh_changes_search_email_state.dart +++ b/lib/features/search/email/domain/state/refresh_changes_search_email_state.dart @@ -21,9 +21,8 @@ class RefreshChangesSearchEmailSuccess extends UIState { } class RefreshChangesSearchEmailFailure extends FeatureFailure { - final dynamic exception; - RefreshChangesSearchEmailFailure(this.exception); + RefreshChangesSearchEmailFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/session/presentation/session_controller.dart b/lib/features/session/presentation/session_controller.dart index 831cee0881..6d35be962e 100644 --- a/lib/features/session/presentation/session_controller.dart +++ b/lib/features/session/presentation/session_controller.dart @@ -1,9 +1,9 @@ -import 'package:core/core.dart'; import 'package:core/data/network/config/dynamic_url_interceptors.dart'; import 'package:core/presentation/state/failure.dart'; import 'package:core/presentation/state/success.dart'; import 'package:core/presentation/utils/app_toast.dart'; import 'package:core/utils/app_logger.dart'; +import 'package:core/utils/platform_info.dart'; import 'package:get/get.dart'; import 'package:jmap_dart_client/jmap/core/session/session.dart'; import 'package:tmail_ui_user/features/base/reloadable/reloadable_controller.dart'; diff --git a/lib/features/thread/domain/state/empty_trash_folder_state.dart b/lib/features/thread/domain/state/empty_trash_folder_state.dart index 33af686013..cd481ce562 100644 --- a/lib/features/thread/domain/state/empty_trash_folder_state.dart +++ b/lib/features/thread/domain/state/empty_trash_folder_state.dart @@ -14,9 +14,8 @@ class EmptyTrashFolderSuccess extends UIActionState { } class EmptyTrashFolderFailure extends FeatureFailure { - final dynamic exception; - EmptyTrashFolderFailure(this.exception); + EmptyTrashFolderFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/thread/domain/state/get_all_email_state.dart b/lib/features/thread/domain/state/get_all_email_state.dart index de00ead0d8..12b5525b3d 100644 --- a/lib/features/thread/domain/state/get_all_email_state.dart +++ b/lib/features/thread/domain/state/get_all_email_state.dart @@ -13,9 +13,8 @@ class GetAllEmailSuccess extends UIState { } class GetAllEmailFailure extends FeatureFailure { - final dynamic exception; - GetAllEmailFailure(this.exception); + GetAllEmailFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/thread/domain/state/get_email_by_id_state.dart b/lib/features/thread/domain/state/get_email_by_id_state.dart index 3b3b8996ea..8080f77830 100644 --- a/lib/features/thread/domain/state/get_email_by_id_state.dart +++ b/lib/features/thread/domain/state/get_email_by_id_state.dart @@ -14,9 +14,8 @@ class GetEmailByIdSuccess extends UIState { } class GetEmailByIdFailure extends FeatureFailure { - final dynamic exception; - GetEmailByIdFailure(this.exception); + GetEmailByIdFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/thread/domain/state/load_more_emails_state.dart b/lib/features/thread/domain/state/load_more_emails_state.dart index 9fd03d838b..6be2a691b7 100644 --- a/lib/features/thread/domain/state/load_more_emails_state.dart +++ b/lib/features/thread/domain/state/load_more_emails_state.dart @@ -11,9 +11,8 @@ class LoadMoreEmailsSuccess extends UIState { } class LoadMoreEmailsFailure extends FeatureFailure { - final dynamic exception; - LoadMoreEmailsFailure(this.exception); + LoadMoreEmailsFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/thread/domain/state/mark_as_multiple_email_read_state.dart b/lib/features/thread/domain/state/mark_as_multiple_email_read_state.dart index 1ab1fa5975..31aaa5c4f9 100644 --- a/lib/features/thread/domain/state/mark_as_multiple_email_read_state.dart +++ b/lib/features/thread/domain/state/mark_as_multiple_email_read_state.dart @@ -49,10 +49,9 @@ class MarkAsMultipleEmailReadHasSomeEmailFailure extends UIActionState { } class MarkAsMultipleEmailReadFailure extends FeatureFailure { - final dynamic exception; final ReadActions readActions; - MarkAsMultipleEmailReadFailure(this.exception, this.readActions); + MarkAsMultipleEmailReadFailure(dynamic exception, this.readActions) : super(exception: exception); @override List get props => [exception, readActions]; diff --git a/lib/features/thread/domain/state/mark_as_star_multiple_email_state.dart b/lib/features/thread/domain/state/mark_as_star_multiple_email_state.dart index 48a2ae2d5f..39704eef5c 100644 --- a/lib/features/thread/domain/state/mark_as_star_multiple_email_state.dart +++ b/lib/features/thread/domain/state/mark_as_star_multiple_email_state.dart @@ -49,10 +49,9 @@ class MarkAsStarMultipleEmailHasSomeEmailFailure extends UIActionState { } class MarkAsStarMultipleEmailFailure extends FeatureFailure { - final dynamic exception; final MarkStarAction markStarAction; - MarkAsStarMultipleEmailFailure(this.exception, this.markStarAction); + MarkAsStarMultipleEmailFailure(dynamic exception, this.markStarAction) : super(exception: exception); @override List get props => [exception, markStarAction]; diff --git a/lib/features/thread/domain/state/move_multiple_email_to_mailbox_state.dart b/lib/features/thread/domain/state/move_multiple_email_to_mailbox_state.dart index 53efae2821..fc056b62d5 100644 --- a/lib/features/thread/domain/state/move_multiple_email_to_mailbox_state.dart +++ b/lib/features/thread/domain/state/move_multiple_email_to_mailbox_state.dart @@ -83,11 +83,10 @@ class MoveMultipleEmailToMailboxHasSomeEmailFailure extends UIActionState { } class MoveMultipleEmailToMailboxFailure extends FeatureFailure { - final dynamic exception; final MoveAction moveAction; final EmailActionType emailActionType; - MoveMultipleEmailToMailboxFailure(this.exception, this.emailActionType, this.moveAction); + MoveMultipleEmailToMailboxFailure(dynamic exception, this.emailActionType, this.moveAction) : super(exception: exception); @override List get props => [exception, emailActionType, moveAction]; diff --git a/lib/features/thread/domain/state/refresh_changes_all_email_state.dart b/lib/features/thread/domain/state/refresh_changes_all_email_state.dart index 11441f20f2..1430f4b521 100644 --- a/lib/features/thread/domain/state/refresh_changes_all_email_state.dart +++ b/lib/features/thread/domain/state/refresh_changes_all_email_state.dart @@ -13,9 +13,8 @@ class RefreshChangesAllEmailSuccess extends UIState { } class RefreshChangesAllEmailFailure extends FeatureFailure { - final dynamic exception; - RefreshChangesAllEmailFailure(this.exception); + RefreshChangesAllEmailFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/thread/domain/state/search_email_state.dart b/lib/features/thread/domain/state/search_email_state.dart index 42ba9fe1c6..f7c2cf4651 100644 --- a/lib/features/thread/domain/state/search_email_state.dart +++ b/lib/features/thread/domain/state/search_email_state.dart @@ -20,9 +20,8 @@ class SearchEmailSuccess extends UIState { } class SearchEmailFailure extends FeatureFailure { - final dynamic exception; - SearchEmailFailure(this.exception); + SearchEmailFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/thread/domain/state/search_more_email_state.dart b/lib/features/thread/domain/state/search_more_email_state.dart index 06623da61e..3f2036bfc0 100644 --- a/lib/features/thread/domain/state/search_more_email_state.dart +++ b/lib/features/thread/domain/state/search_more_email_state.dart @@ -21,9 +21,8 @@ class SearchMoreEmailSuccess extends UIState { } class SearchMoreEmailFailure extends FeatureFailure { - final dynamic exception; - SearchMoreEmailFailure(this.exception); + SearchMoreEmailFailure(dynamic exception) : super(exception: exception); @override List get props => [exception]; diff --git a/lib/features/upload/domain/state/local_file_picker_state.dart b/lib/features/upload/domain/state/local_file_picker_state.dart index 0bbb928375..6aba8a5ff4 100644 --- a/lib/features/upload/domain/state/local_file_picker_state.dart +++ b/lib/features/upload/domain/state/local_file_picker_state.dart @@ -12,9 +12,8 @@ class LocalFilePickerSuccess extends UIState { } class LocalFilePickerFailure extends FeatureFailure { - final dynamic exception; - LocalFilePickerFailure(this.exception); + LocalFilePickerFailure(dynamic exception) : super(exception: exception); @override List get props => [exception];