From 5acd1c1defac70bc9bca220fc01dda2c7f93072b Mon Sep 17 00:00:00 2001 From: Gordon Date: Fri, 15 Jul 2022 15:40:39 +0200 Subject: [PATCH] docs: add filter to StreamUserListController (#1267) The filter is a required field for the API call --- .../stream_chat_flutter_core/stream_user_list_controller.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docusaurus/docs/Flutter/stream_chat_flutter_core/stream_user_list_controller.mdx b/docusaurus/docs/Flutter/stream_chat_flutter_core/stream_user_list_controller.mdx index 0bee29ed..885b1c82 100644 --- a/docusaurus/docs/Flutter/stream_chat_flutter_core/stream_user_list_controller.mdx +++ b/docusaurus/docs/Flutter/stream_chat_flutter_core/stream_user_list_controller.mdx @@ -27,6 +27,7 @@ class UserListPageState extends State { /// [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. \ No newline at end of file +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.