getMsgUnreadCount static method

Future<NIMResult<int>> getMsgUnreadCount()

获取消息未读数

Implementation

static Future<NIMResult<int>> getMsgUnreadCount() {
  return NimCore.instance.messageService
      .queryTotalUnreadCount(queryType: NIMUnreadCountQueryType.notifyOnly);
}