TF-381 Apply new UI for emails selection active

This commit is contained in:
dab246
2022-03-22 00:57:24 +07:00
committed by Dat H. Pham
parent 61f3f0d00f
commit 7dc8672b82
7 changed files with 138 additions and 54 deletions
@@ -3,4 +3,8 @@ import 'package:model/email/presentation_email.dart';
extension ListPresentationEmailExtension on List<PresentationEmail> {
bool get isAllEmailRead => every((email) => email.isReadEmail());
bool get isAllEmailStarred => every((email) => email.isFlaggedEmail());
List<PresentationEmail> get allEmailUnread => where((email) => email.isUnReadEmail()).toList();
}