CometChatSearch constructor

const CometChatSearch({
  1. Key? key,
  2. VoidCallback? onBack,
  3. dynamic onConversationClicked(
    1. Conversation conversation
    )?,
  4. dynamic onMessageClicked(
    1. BaseMessage message
    )?,
  5. OnEmpty? onEmpty,
  6. OnError? onError,
  7. OnLoad<BaseMessage>? onMessagesLoad,
  8. OnLoad<Conversation>? onConversationsLoad,
  9. List<SearchFilter>? searchFilters,
  10. List<SearchScope>? searchIn,
  11. User? user,
  12. Group? group,
  13. CometChatSearchStyle? searchStyle,
  14. Widget? searchBackIcon,
  15. Widget? searchClearIcon,
  16. WidgetBuilder? loadingStateView,
  17. WidgetBuilder? emptyStateView,
  18. WidgetBuilder? errorStateView,
  19. WidgetBuilder? initialStateView,
  20. Widget? conversationItemView(
    1. BuildContext,
    2. Conversation
    )?,
  21. Widget? conversationTitleView(
    1. BuildContext,
    2. Conversation
    )?,
  22. Widget? conversationLeadingView(
    1. BuildContext,
    2. Conversation
    )?,
  23. Widget? conversationSubtitleView(
    1. BuildContext,
    2. Conversation
    )?,
  24. Widget? conversationTailView(
    1. BuildContext,
    2. Conversation
    )?,
  25. bool? usersStatusVisibility,
  26. bool? receiptsVisibility,
  27. bool? groupTypeVisibility,
  28. DateTimeFormatterCallback? dateSeparatorFormatterCallback,
  29. DateTimeFormatterCallback? timeSeparatorFormatterCallback,
  30. Widget? searchTextMessageView(
    1. BuildContext,
    2. TextMessage
    )?,
  31. Widget? searchImageMessageView(
    1. BuildContext,
    2. MediaMessage
    )?,
  32. Widget? searchVideoMessageView(
    1. BuildContext,
    2. MediaMessage
    )?,
  33. Widget? searchFileMessageView(
    1. BuildContext,
    2. MediaMessage
    )?,
  34. Widget? searchAudioMessageView(
    1. BuildContext,
    2. MediaMessage
    )?,
  35. ConversationsRequestBuilder? conversationsRequestBuilder,
  36. 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,
});