fetchChatroomMembers method Null safety

Future<NIMResult<List<NIMChatroomMember>>> fetchChatroomMembers(
  1. {required String roomId,
  2. required NIMChatroomMemberQueryType queryType,
  3. required int limit,
  4. String? lastMemberAccount}
)

Get the current chat room members.

roomId Specify the chatroom ID.

queryType Specify the query type NIMChatroomMemberQueryType.

limit Specify the maximum messages that can be obtained.

lastMemberAccount Specify a member as the anchor point for the query. Members who joins the chatroom later than the anchor point will be listed. If nil is passed, members who joined the chatroom later the current server time will be listed.

Implementation

Future<NIMResult<List<NIMChatroomMember>>> fetchChatroomMembers({
  required String roomId,
  required NIMChatroomMemberQueryType queryType,
  required int limit,
  String? lastMemberAccount,
}) {
  return _platform.fetchChatroomMembers(
    roomId: roomId,
    queryType: queryType,
    limit: limit,
    lastMemberAccount: lastMemberAccount,
  );
}