79824816

Date: 2025-11-19 18:41:54
Score: 1
Natty:
Report link
  _notificationSub = FirestoreNotificationService.unreadCountStream()
      .listen((count) {
    if (!mounted) return;

    setState(() => unread = count);

    if (count > 0) {
      _ctl.stop();
      _ctl.forward(from: 0);
    } else {
      _ctl.reset();
    }
  });
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nitish Kalia