getUnreadCount method
Returns the count of unread, non-dismissed notifications.
Implementation
int getUnreadCount() {
return _notifications
.where((n) => !n.read && !n.dismissed && !n.isExpired)
.length;
}
Returns the count of unread, non-dismissed notifications.
int getUnreadCount() {
return _notifications
.where((n) => !n.read && !n.dismissed && !n.isExpired)
.length;
}