StreamUserListController constructor
StreamUserListController({
- required StreamChatClient client,
- Filter? filter,
- List<
SortOption> ? sort, - bool presence = true,
- int limit = defaultUserPagedLimit,
Creates a Stream user list controller.
-
client
is the Stream chat client to use for the channels list. -
filter
is the query filters to use. -
sort
is the sorting used for the users matching the filters. -
presence
sets whether you'll receive user presence updates via the websocket events. -
limit
is the limit to apply to the user list.
Implementation
StreamUserListController({
required this.client,
this.filter,
this.sort,
this.presence = true,
this.limit = defaultUserPagedLimit,
}) : _activeFilter = filter,
_activeSort = sort,
super(const PagedValue.loading());