CometChatSearch constructor
const
CometChatSearch({
- Key? key,
- VoidCallback? onBack,
- dynamic onConversationClicked(
- Conversation conversation
- dynamic onMessageClicked(
- BaseMessage message
- OnEmpty? onEmpty,
- OnError? onError,
- OnLoad<
BaseMessage> ? onMessagesLoad, - OnLoad<
Conversation> ? onConversationsLoad, - List<
SearchFilter> ? searchFilters, - List<
SearchScope> ? searchIn, - User? user,
- Group? group,
- CometChatSearchStyle? searchStyle,
- Widget? searchBackIcon,
- Widget? searchClearIcon,
- WidgetBuilder? loadingStateView,
- WidgetBuilder? emptyStateView,
- WidgetBuilder? errorStateView,
- WidgetBuilder? initialStateView,
- Widget? conversationItemView()?,
- Widget? conversationTitleView()?,
- Widget? conversationLeadingView()?,
- Widget? conversationSubtitleView()?,
- Widget? conversationTailView()?,
- bool? usersStatusVisibility,
- bool? receiptsVisibility,
- bool? groupTypeVisibility,
- DateTimeFormatterCallback? dateSeparatorFormatterCallback,
- DateTimeFormatterCallback? timeSeparatorFormatterCallback,
- Widget? searchTextMessageView()?,
- Widget? searchImageMessageView()?,
- Widget? searchVideoMessageView()?,
- Widget? searchFileMessageView()?,
- Widget? searchAudioMessageView()?,
- ConversationsRequestBuilder? conversationsRequestBuilder,
- MessagesRequestBuilder? messagesRequestBuilder,
Implementation
const CometChatSearch({
super.key,
this.onBack,
this.onConversationClicked,
this.onMessageClicked,
this.onEmpty,
this.onError,
this.onMessagesLoad,
this.onConversationsLoad,
this.searchFilters,
this.searchIn,
this.user,
this.group,
this.searchStyle,
this.searchBackIcon,
this.searchClearIcon,
this.loadingStateView,
this.emptyStateView,
this.errorStateView,
this.initialStateView,
this.conversationItemView,
this.conversationTitleView,
this.conversationLeadingView,
this.conversationSubtitleView,
this.conversationTailView,
this.usersStatusVisibility,
this.receiptsVisibility,
this.groupTypeVisibility,
this.dateSeparatorFormatterCallback,
this.timeSeparatorFormatterCallback,
this.searchTextMessageView,
this.searchImageMessageView,
this.searchVideoMessageView,
this.searchFileMessageView,
this.searchAudioMessageView,
this.conversationsRequestBuilder,
this.messagesRequestBuilder,
});