getTotalUnreadCount static method
获取所有的未读数
finished
回调结果,code 为 0 代表正常
Implementation
static Future<void> getTotalUnreadCount(Function(int? count, int? code)? finished) async {
Map? map = await _channel.invokeMethod(RCMethodKey.GetTotalUnreadCount);
if (finished != null) {
finished(map!["count"], map["code"]);
}
}