createGroup method Null safety

Future<V2TimValueCallback<String>> createGroup(
  1. {String? groupID,
  2. required String groupType,
  3. required String groupName,
  4. String? notification,
  5. String? introduction,
  6. String? faceUrl,
  7. bool? isAllMuted,
  8. GroupAddOptTypeEnum? addOpt,
  9. 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,
  );
}