StreamUserListController constructor

StreamUserListController({
  1. required StreamChatClient client,
  2. Filter? filter,
  3. List<SortOption>? sort,
  4. bool presence = true,
  5. 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());