createTeam method Null safety

Future<NIMResult<NIMCreateTeamResult>> createTeam(
  1. {required NIMCreateTeamOptions createTeamOptions,
  2. required List<String> members}
)

Create a group. You can call this API to create two types of groups (by passing different parameter values), that is, discussion groups and advanced groups. All message features are the same for the two types of groups. They differ in the management features: 1. all members of the discussion groups can add other users to their groups. 2. only the group owners of discussion groups can remove members, others cannot. Advanced groups have a comprehensive permission system and management features.

fields ,NIMTeamFieldEnum The pre-defined group profile. The type of its key's value must be consistent with fieldType defined in fields. type ,NIMTeamTypeEnum The type of group to be created. members Accounts (accid) that need to be added to the group. You can set the callback function. Once the callback is invoked, the profile of the created group will be returned.

Implementation

///  You can set the callback function. Once the callback is invoked, the profile of the created group will be returned.
Future<NIMResult<NIMCreateTeamResult>> createTeam(
    {required NIMCreateTeamOptions createTeamOptions,
    required List<String> members}) async {
  return _platform.createTeam(createTeamOptions, members);
}