unreadNotifications property

List<Notification> get unreadNotifications

The unread notifications.

Implementation

List<Notification> get unreadNotifications => state.data?.where((element) => !element.read).toList() ?? [];