hasUnreadNotifications property

bool get hasUnreadNotifications

If true the current user has unread notifications.

Implementation

bool get hasUnreadNotifications => state.data?.any((element) => !element.read) ?? false;