startWatchingUnreadCounter method

void startWatchingUnreadCounter(
  1. Function watcher
)

Registers the callback that gets called when counter of unread messages gets changed

Implementation

void startWatchingUnreadCounter(Function watcher) {
  _unreadCounterWatcher = watcher;
}