createGroup method Null safety
- {String? groupID,
- required String groupType,
- required String groupName,
- String? notification,
- String? introduction,
- String? faceUrl,
- bool? isAllMuted,
- GroupAddOptTypeEnum? addOpt,
- List<
V2TimGroupMember> ? memberList}
Create a custom group (The advanced version API allows you to specify initial group members.)
Parameter
info Customize group information, you can set the groupID | groupType | groupName | notification | introduction | faceURL field
memberList Specify the initial group members (the live group AVChatRoom does not support specifying initial group members, please pass null for memberList)
Note:
For other restrictions, please refer to the V2TIMManager.createGroup note
Implementation
Future<V2TimValueCallback<String>> createGroup({
String? groupID,
required String groupType,
required String groupName,
String? notification,
String? introduction,
String? faceUrl,
bool? isAllMuted,
GroupAddOptTypeEnum? addOpt,
List<V2TimGroupMember>? memberList,
}) async {
return ImFlutterPlatform.instance.createGroup(
groupType: groupType,
groupName: groupName,
groupID: groupID,
notification: notification,
introduction: introduction,
faceUrl: faceUrl,
isAllMuted: isAllMuted,
addOpt: addOpt!.index,
memberList: memberList,
);
}