onBack | VoidCallback? | null | onBack callback triggered on closing a screen |
onConversationClicked | Function(Conversation conversation)? | null | Called when a conversation result is tapped. |
onMessageClicked | Function(BaseMessage message)? | null | Called when a message result is tapped. |
onEmpty | OnEmpty? | null | onEmpty callback triggered when the list is empty |
onError | OnError? | null | onError callback triggered in case any error happens when fetching data |
onMessagesLoad | OnLoad<BaseMessage>? | null | Called once message results have loaded. |
onConversationsLoad | OnLoad<Conversation>? | null | Called once conversation results have loaded. |
searchFilters | List<SearchFilter>? | null | Filters offered above the results, such as photos or links. |
searchIn | List<SearchScope>? | null | Scopes the search — conversations, messages, or both. |
user | User? | null | Target user for 1-on-1 conversation (mutually exclusive with group) |
group | Group? | null | Target group for group conversation (mutually exclusive with user) |
searchStyle | CometChatSearchStyle? | null | Style object for this widget. The app ThemeData does not reach inside a kit widget, so scope colours here. |
searchBackIcon | Widget? | null | Icon for the back affordance in the search bar. |
searchClearIcon | Widget? | null | Icon for the clear affordance in the search bar. |
loadingStateView | WidgetBuilder? | null | loadingStateView is a parameter used to show the loading state view in case of loading |
emptyStateView | WidgetBuilder? | null | emptyStateView returns view fow empty state |
errorStateView | WidgetBuilder? | null | errorStateView is a parameter used to show the error state view in case of any error |
initialStateView | WidgetBuilder? | null | View shown before a query is entered. |
conversationItemView | Widget? Function(BuildContext, Conversation)? | null | Replaces an entire conversation result row. |
conversationTitleView | Widget? Function(BuildContext, Conversation)? | null | Replaces the title slot of a conversation result row. |
conversationLeadingView | Widget? Function(BuildContext, Conversation)? | null | Replaces the leading slot of a conversation result row. |
conversationSubtitleView | Widget? Function(BuildContext, Conversation)? | null | Replaces the subtitle slot of a conversation result row. |
conversationTailView | Widget? Function(BuildContext, Conversation)? | null | Replaces the trailing slot of a conversation result row. |
usersStatusVisibility | bool? | null | usersStatusVisibility controls visibility of status indicator shown if a user is online |
receiptsVisibility | bool? | null | receiptsVisibility controls visibility of receipts |
groupTypeVisibility | bool? | null | groupTypeVisibility Hide the group type icon which is visible on the group icon. |
dateSeparatorFormatterCallback | DateTimeFormatterCallback? | null | Builds the date string shown on the separator between result groups. |
timeSeparatorFormatterCallback | DateTimeFormatterCallback? | null | Builds the time string shown on a result row. |
searchTextMessageView | Widget? Function(BuildContext, TextMessage)? | null | Replaces the row used for a text-message result. |
searchImageMessageView | Widget? Function(BuildContext, MediaMessage)? | null | Replaces the row used for an image-message result. |
searchVideoMessageView | Widget? Function(BuildContext, MediaMessage)? | null | Replaces the row used for a video-message result. |
searchFileMessageView | Widget? Function(BuildContext, MediaMessage)? | null | Replaces the row used for a file-message result. |
searchAudioMessageView | Widget? Function(BuildContext, MediaMessage)? | null | Replaces the row used for an audio-message result. |
conversationsRequestBuilder | ConversationsRequestBuilder? | null | conversationsRequestBuilder Request builder to fetch conversations. |
messagesRequestBuilder | MessagesRequestBuilder? | null | Request builder used to fetch message results. |