fetchChatroomMembers method Null safety
- {required String roomId,
- required NIMChatroomMemberQueryType queryType,
- required int limit,
- 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,
);
}