getGroupsInfo method

  1. @override
Future<List<V2TimGroupInfoResult>?> getGroupsInfo({
  1. required List<String> groupIDList,
})
override

Implementation

@override
Future<List<V2TimGroupInfoResult>?> getGroupsInfo({
  required List<String> groupIDList,
}) async {
  final res = await TencentImSDKPlugin.v2TIMManager
      .getGroupManager()
      .getGroupsInfo(groupIDList: groupIDList);
  if (res.code == 0) {
    return res.data;
  } else {
    _coreService.callOnCallback(TIMCallback(
        type: TIMCallbackType.API_ERROR,
        errorMsg: res.desc,
        errorCode: res.code));
    return null;
  }
}