setGroupInfo method

  1. @override
Future<V2TimCallback> setGroupInfo({
  1. required V2TimGroupInfo info,
})
override

Implementation

@override
Future<V2TimCallback> setGroupInfo({
  required V2TimGroupInfo info,
}) async {
  return V2TimCallback.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "setGroupInfo",
        buildGroupManagerParam(
          {
            "groupID": info.groupID,
            "groupType": info.groupType,
            "groupName": info.groupName,
            "notification": info.notification,
            "introduction": info.introduction,
            "faceUrl": info.faceUrl,
            "isAllMuted": info.isAllMuted,
            "addOpt": info.groupAddOpt,
            "customInfo": info.customInfo,
            "isSupportTopic": info.isSupportTopic,
            "approveOpt": info.approveOpt,
            "isEnablePermissionGroup": info.isEnablePermissionGroup ?? false,
            "defaultPermissions": info.defaultPermissions ?? 0,
          },
        ),
      ),
    ),
  );
}