createCommunity method
Future<V2TimValueCallback<String> >
createCommunity({
- required V2TimGroupInfo info,
- required List<
V2TimCreateGroupMemberInfo> memberList,
override
Implementation
@override
Future<V2TimValueCallback<String>> createCommunity({
required V2TimGroupInfo info,
required List<V2TimCreateGroupMemberInfo> memberList,
}) async {
Map<String, dynamic> param = {
"info": info.toJson(),
"memberList": memberList.map((e) => e.toJson()).toList(),
};
var resp = V2TimValueCallback<String>.fromJson(
formatJson(
await _channel.invokeMethod(
"createCommunity",
buildCommunityManagerParam(
param,
),
),
),
);
log("createCommunity", param, resp.toLogString());
return resp;
}