docs: add filter to StreamUserListController (#1267)

The filter is a required field for the API call
This commit is contained in:
Gordon
2022-07-15 15:40:39 +02:00
committed by GitHub
parent 0cffd09415
commit 5acd1c1def
@@ -27,6 +27,7 @@ class UserListPageState extends State<UserListPage> {
/// [StreamUserListController].
late final userListController = StreamUserListController(
client: StreamChatCore.of(context).client,
filter: Filter.notEqual('id', StreamChatCore.of(context).currentUser!),
);
```
@@ -109,4 +110,4 @@ Widget build(BuildContext context) => Scaffold(
);
```
In this case we're using the [`LazyLoadScrollView`](./lazy_load_scroll_view.mdx) widget to load more data when the user scrolls to the bottom of the list.
In this case we're using the [`LazyLoadScrollView`](./lazy_load_scroll_view.mdx) widget to load more data when the user scrolls to the bottom of the list.