searchGroups method

  1. @override
Future<V2TimValueCallback<List<V2TimGroupInfo>>> searchGroups({
  1. required V2TimGroupSearchParam searchParam,
})
override

搜索群资料

web 不支持关键字搜索搜索, 请使用searchGroupByID

Implementation

@override
Future<V2TimValueCallback<List<V2TimGroupInfo>>> searchGroups({
  required V2TimGroupSearchParam searchParam,
}) async {
  Map<String, dynamic> param = {
    "searchParam": searchParam.toJson(),
  };
  var resp = V2TimValueCallback<List<V2TimGroupInfo>>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "searchGroups",
        buildGroupManagerParam(
          param,
        ),
      ),
    ),
  );
  log("searchGroups", param, resp.toLogString());
  return resp;
}