getUnreadCount method

int getUnreadCount()

Returns the count of unread, non-dismissed notifications.

Implementation

int getUnreadCount() {
  return _notifications
      .where((n) => !n.read && !n.dismissed && !n.isExpired)
      .length;
}