removeFromBlackList static method
将用户移除黑名单
userId
需要移除黑名单的用户 id
finished
回调结果,code 为 0 代表操作成功,其他值代表失败
Implementation
static Future<void> removeFromBlackList(String userId, Function(int? code)? finished) async {
Map map = {"userId": userId};
int? code = await _channel.invokeMethod(RCMethodKey.RemoveFromBlackList, map);
if (finished != null) {
finished(code);
}
}