getUnreadCountStream method
Gets a stream of unread count updates.
This method returns a Stream of int values representing the unread count, which is updated in real-time by the native platform.
Implementation
@override
Stream<int> getUnreadCountStream() {
return eventChannel.receiveBroadcastStream().map((event) => event as int);
}