CometChatSearch class
Full-screen search widget for conversations and messages.
Supports text search with debounce, filter chips, dual-section results (Conversations + Messages), "See More" pagination, and custom view slots.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CometChatSearch
Constructors
-
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(BuildContext, Conversation)?, Widget? conversationTitleView(BuildContext, Conversation)?, Widget? conversationLeadingView(BuildContext, Conversation)?, Widget? conversationSubtitleView(BuildContext, Conversation)?, Widget? conversationTailView(BuildContext, Conversation)?, bool? usersStatusVisibility, bool? receiptsVisibility, bool? groupTypeVisibility, DateTimeFormatterCallback? dateSeparatorFormatterCallback, DateTimeFormatterCallback? timeSeparatorFormatterCallback, Widget? searchTextMessageView(BuildContext, TextMessage)?, Widget? searchImageMessageView(BuildContext, MediaMessage)?, Widget? searchVideoMessageView(BuildContext, MediaMessage)?, Widget? searchFileMessageView(BuildContext, MediaMessage)?, Widget? searchAudioMessageView(BuildContext, MediaMessage)?, ConversationsRequestBuilder? conversationsRequestBuilder, MessagesRequestBuilder? messagesRequestBuilder}) -
const
Properties
- conversationItemView → Widget? Function(BuildContext, Conversation)?
-
final
- conversationLeadingView → Widget? Function(BuildContext, Conversation)?
-
final
- conversationsRequestBuilder → ConversationsRequestBuilder?
-
final
- conversationSubtitleView → Widget? Function(BuildContext, Conversation)?
-
final
- conversationTailView → Widget? Function(BuildContext, Conversation)?
-
final
- conversationTitleView → Widget? Function(BuildContext, Conversation)?
-
final
- dateSeparatorFormatterCallback → DateTimeFormatterCallback?
-
final
- emptyStateView → WidgetBuilder?
-
final
- errorStateView → WidgetBuilder?
-
final
- group → Group?
-
final
- groupTypeVisibility → bool?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialStateView → WidgetBuilder?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loadingStateView → WidgetBuilder?
-
final
- messagesRequestBuilder → MessagesRequestBuilder?
-
final
- onBack → VoidCallback?
-
final
- onConversationClicked → dynamic Function(Conversation conversation)?
-
final
-
onConversationsLoad
→ OnLoad<
Conversation> ? -
final
- onEmpty → VoidCallback?
-
final
- onError → OnError?
-
final
- onMessageClicked → dynamic Function(BaseMessage message)?
-
final
-
onMessagesLoad
→ OnLoad<
BaseMessage> ? -
final
- receiptsVisibility → bool?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchAudioMessageView → Widget? Function(BuildContext, MediaMessage)?
-
final
- searchBackIcon → Widget?
-
final
- searchClearIcon → Widget?
-
final
- searchFileMessageView → Widget? Function(BuildContext, MediaMessage)?
-
final
-
searchFilters
→ List<
SearchFilter> ? -
final
- searchImageMessageView → Widget? Function(BuildContext, MediaMessage)?
-
final
-
searchIn
→ List<
SearchScope> ? -
final
- searchStyle → CometChatSearchStyle?
-
final
- searchTextMessageView → Widget? Function(BuildContext, TextMessage)?
-
final
- searchVideoMessageView → Widget? Function(BuildContext, MediaMessage)?
-
final
- timeSeparatorFormatterCallback → DateTimeFormatterCallback?
-
final
- user → User?
-
final
- usersStatusVisibility → bool?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< CometChatSearch> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited