unfollowUser method

  1. @override
Future<V2TimValueCallback<List<V2TimFollowOperationResult>>> unfollowUser({
  1. required List<String> userIDList,
})
override

取消关注用户

Implementation

@override
Future<V2TimValueCallback<List<V2TimFollowOperationResult>>> unfollowUser({
  required List<String> userIDList,
}) async {
  Map<String, dynamic> param = {
    "userIDList": userIDList,
    "ability": Utils.getAbility(),
  };
  var resp = V2TimValueCallback<List<V2TimFollowOperationResult>>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "unfollowUser",
        buildFriendManagerParam(
          param,
        ),
      ),
    ),
  );
  log("unfollowUser", param, resp.toLogString());
  return resp;
}