TF-3372 Worker adds progress state to onProgressController in mobile/web
This commit is contained in:
committed by
Dat H. Pham
parent
e327cf6b9c
commit
a81d33f98b
@@ -1,6 +1,7 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
||||
import 'package:jmap_dart_client/jmap/mail/mailbox/mailbox.dart';
|
||||
|
||||
class EmptySpamFolderLoading extends LoadingState {}
|
||||
|
||||
@@ -17,4 +18,15 @@ class EmptySpamFolderSuccess extends UIState {
|
||||
class EmptySpamFolderFailure extends FeatureFailure {
|
||||
|
||||
EmptySpamFolderFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
|
||||
class EmptyingFolderState extends UIState {
|
||||
final MailboxId mailboxId;
|
||||
final int countEmailsDeleted;
|
||||
final int totalEmails;
|
||||
|
||||
EmptyingFolderState(this.mailboxId, this.countEmailsDeleted, this.totalEmails);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [mailboxId, countEmailsDeleted, totalEmails];
|
||||
}
|
||||
Reference in New Issue
Block a user