updateTotalUnreadCount method

void updateTotalUnreadCount(
  1. int count
)

Replaces the tracked total unread count.

Implementation

void updateTotalUnreadCount(int count) {
  if (_totalUnreadCount == count) {
    return;
  }
  _totalUnreadCount = count;
  notifyListeners();
}