createCommunity method

  1. @override
Future<V2TimValueCallback<String>> createCommunity({
  1. required V2TimGroupInfo info,
  2. required List<V2TimCreateGroupMemberInfo> memberList,
})
override

Implementation

@override
Future<V2TimValueCallback<String>> createCommunity({
  required V2TimGroupInfo info,
  required List<V2TimCreateGroupMemberInfo> memberList,
}) async {
  return V2TimValueCallback<String>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "getTopicPermissionInPermissionGroup",
        buildCommunityManagerParam(
          {
            "info": info.toJson(),
            "memberList": memberList.map((e) => e.toJson()).toList(),
          },
        ),
      ),
    ),
  );
}