updateUnreadNotificationCount method

void updateUnreadNotificationCount(
  1. int count
)

Updates the unread notification count.

This is typically called by the NotificationService or when notifications are read/cleared by the user.

Implementation

void updateUnreadNotificationCount(int count) {
  logv('Updating unread notification count: $count');
  emitSafe(state.copyWith(unreadNotificationCount: count));
}