Skip to content

Commit

Permalink
Apply lint to hide unnecessary warnings when running dart analyze
Browse files Browse the repository at this point in the history
  • Loading branch information
dab246 committed Jun 14, 2023
1 parent 1f33f6d commit 7e6caf4
Show file tree
Hide file tree
Showing 112 changed files with 114 additions and 225 deletions.
2 changes: 1 addition & 1 deletion lib/features/base/reloadable/reloadable_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object> get props => [exception, isInline];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [taskId, exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
3 changes: 1 addition & 2 deletions lib/features/email/domain/state/export_attachment_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
3 changes: 1 addition & 2 deletions lib/features/email/domain/state/get_email_content_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception, readActions];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception, markStarAction];
Expand Down
3 changes: 1 addition & 2 deletions lib/features/email/domain/state/move_to_mailbox_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [emailActionType, exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
3 changes: 1 addition & 2 deletions lib/features/login/domain/state/delete_credential_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions lib/features/login/domain/state/get_token_oidc_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object?> get props => [exception];
Expand Down
Loading

0 comments on commit 7e6caf4

Please sign in to comment.