getGroupMemberList method Null safety

Future<V2TimValueCallback<V2TimGroupMemberInfoResult>> getGroupMemberList(
  1. {required String groupID,
  2. required GroupMemberFilterTypeEnum filter,
  3. required String nextSeq,
  4. int count = 15,
  5. int offset = 0}
)

Get the group member list

Parameter

filter	Specify group member type
GroupMemberFilterTypeEnum.V2TIM_GROUP_MEMBER_FILTER_ALL: all types
GroupMemberFilterTypeEnum.V2TIM_GROUP_MEMBER_FILTER_OWNER: group owner
GroupMemberFilterTypeEnum.V2TIM_GROUP_MEMBER_FILTER_ADMIN: group administrator
GroupMemberFilterTypeEnum.V2TIM_GROUP_MEMBER_FILTER_COMMON: pull the flag of common group members, pull the first subpage
nextSeq Fill in 0, the callback is successful. If nextSeq is not zero, paging is required, and the input is pulled again until it is 0. 

Note:

The special limitation of the live group (AVChatRoom):
The pull of the administrator role is not supported. The maximum number of group members is only 31 (the new members will be in the first place). After the program restarts, please rejoin the group, otherwise Pull group members will report an error code of 10007. 
Group member profile information only supports userID | nickName | faceURL | role fields. The 
role field does not support the admin role, if your business logic depends on the admin role, you can use the group custom field groupAttributes to manage the role. 

When used on the web side, count and offset are mandatory parameters. filter and nextSeq do not take effect count: The number to be pulled. Maximum value: 100, to avoid request failure due to too large returned packets. If more than 100 are passed in, only the first 100 will be pulled. offset: offset, the default is to start pulling from 0

Implementation

Future<V2TimValueCallback<V2TimGroupMemberInfoResult>> getGroupMemberList({
  required String groupID,
  required GroupMemberFilterTypeEnum filter,
  required String nextSeq,
  int count = 15,
  int offset = 0,
}) async {
  return ImFlutterPlatform.instance.getGroupMemberList(
      groupID: groupID,
      filter: EnumUtils.convertGroupMemberFilterEnum(filter),
      nextSeq: nextSeq,
      count: count,
      offset: offset);
}