hasUnreadNotifications property
If true
the current user has unread notifications.
Implementation
bool get hasUnreadNotifications => state.data?.any((element) => !element.read) ?? false;
If true
the current user has unread notifications.
bool get hasUnreadNotifications => state.data?.any((element) => !element.read) ?? false;