getUnreadMsgCount method

  1. @override
Future<void> getUnreadMsgCount(
  1. void msgCountCallBack(
    1. int count
    )
)
override

Implementation

@override
Future<void> getUnreadMsgCount(
    void Function(int count) msgCountCallBack) async {
  countChannel.receiveBroadcastStream().listen(
    (data) {
      msgCountCallBack(data);
    },
    cancelOnError: false,
  );
}