badgeCountStream property

Stream<int> get badgeCountStream

Stream of badge count changes.

Emits the current badge count whenever it changes via updateBadgeCount. Use this stream to reactively update UI based on badge count.

Example:

NotificationService().badgeCountStream.listen((count) {
  print('Badge count changed to: $count');
});

Implementation

Stream<int> get badgeCountStream => _badgeCountController.stream;