getBadgeCount method

int getBadgeCount()

Gets the current badge count synchronously.

Returns the last known badge count. For reactive updates, use badgeCountStream instead.

Implementation

int getBadgeCount() {
  return _currentBadgeCount;
}