getTotalUnreadCount static method

Future<void> getTotalUnreadCount(
  1. dynamic finished(
    1. int? count,
    2. int? code
    )?
)

获取所有的未读数

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"]);
  }
}