TF-695: implement isolate for empty trash

This commit is contained in:
ManhNTX
2022-08-12 09:51:31 +07:00
committed by Dat H. Pham
parent 64d6ad6272
commit f05114b772
12 changed files with 97 additions and 49 deletions
@@ -9,17 +9,10 @@ import 'package:tmail_ui_user/features/thread/data/network/thread_api.dart';
class EmptyTrashFolderArguments with EquatableMixin {
AccountId accountId;
MailboxId trashMailboxId;
Future<void> Function(State state) updateState;
Future<void> Function({
List<Email>? newUpdated,
List<Email>? newCreated,
List<EmailId>? newDestroyed,
}) updateEmailCache;
final ThreadAPI threadAPI;
final EmailAPI emailAPI;
EmptyTrashFolderArguments(this.threadAPI, this.emailAPI, this.accountId,
this.trashMailboxId, this.updateEmailCache, this.updateState);
EmptyTrashFolderArguments(this.threadAPI, this.emailAPI, this.accountId, this.trashMailboxId);
@override
List<Object?> get props => [accountId, trashMailboxId];