MessageConfiguration class

MessageConfiguration is a data class that has configuration properties to customize the functionality and appearance of CometChatMessages can be used by a component where CometChatMessages is a child component

 MessageConfiguration(
       messagesStyle: MessagesStyle(),
       detailsConfiguration: DetailsConfiguration(),
       messageListConfiguration: MessageListConfiguration(),
       messageHeaderConfiguration: MessageHeaderConfiguration(),
       messageComposerConfiguration: MessageComposerConfiguration(),
       threadedMessagesConfiguration: ThreadedMessagesConfiguration()
     );

Constructors

MessageConfiguration({bool? disableSoundForMessages, String? customSoundForIncomingMessagePackage, PreferredSizeWidget messageHeaderView(User? user, Group? group, BuildContext context)?, Widget messageComposerView(User? user, Group? group, BuildContext context)?, Widget messageListView(User? user, Group? group, BuildContext context)?, bool? hideMessageHeader, MessageHeaderConfiguration? messageHeaderConfiguration, MessageListConfiguration? messageListConfiguration, MessageComposerConfiguration? messageComposerConfiguration, DetailsConfiguration? detailsConfiguration, String? customSoundForOutgoingMessagePackage, MessagesStyle? messagesStyle, bool? disableTyping, String? customSoundForIncomingMessages, String? customSoundForOutgoingMessages, bool? hideMessageComposer, CometChatTheme? theme, Widget detailsWidget(User? user, Group? group, BuildContext context)?, ThreadedMessagesConfiguration? threadedMessagesConfiguration, bool? hideDetails, Widget? auxiliaryHeaderMenu})
const

Properties

auxiliaryHeaderMenu Widget?
auxiliaryHeaderMenu is the place in the CometChatMessageHeader where the calling buttons are shown if the CometChatCallingExtension is enabled
final
customSoundForIncomingMessagePackage String?
customSoundForIncomingMessagePackage is the package name for different package
final
customSoundForIncomingMessages String?
customSoundForIncomingMessages custom asset sound's path for incoming messages
final
customSoundForOutgoingMessagePackage String?
customSoundForIncomingMessages custom sound path for outgoing messages
final
customSoundForOutgoingMessages String?
customSoundForOutgoingMessages is the package name for different package
final
detailsConfiguration DetailsConfiguration?
detailsConfiguration config properties for details module
final
detailsWidget Widget Function(User? user, Group? group, BuildContext context)?
final
disableSoundForMessages bool?
disableSoundForMessages disable sound for incoming and outgoing message
final
disableTyping bool?
disableTyping if true then show typing indicator for composer
final
hashCode int
The hash code for this object.
no setterinherited
hideDetails bool?
hideDetails toggle visibility for details icons
final
hideMessageComposer bool?
hideMessageComposer hides the composer , default false
final
hideMessageHeader bool?
hideMessageHeader toggle visibility for message header
final
messageComposerConfiguration MessageComposerConfiguration?
To set the configuration of message list messageComposerConfiguration is used
final
messageComposerView Widget Function(User? user, Group? group, BuildContext context)?
messageComposerView to set custom message composer
final
messageHeaderConfiguration MessageHeaderConfiguration?
To set the configuration of message list messageHeaderConfiguration is used
final
messageHeaderView PreferredSizeWidget Function(User? user, Group? group, BuildContext context)?
messageHeaderView to set custom header
final
messageListConfiguration MessageListConfiguration?
To set the configuration of message list messageListConfiguration is used
final
messageListView Widget Function(User? user, Group? group, BuildContext context)?
messageListView to set custom message list
final
messagesStyle MessagesStyle?
messagesStyle contains properties that affect the appearance of this widget
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
theme CometChatTheme?
theme sets custom theme for CometChatMessages
final
threadedMessagesConfiguration ThreadedMessagesConfiguration?
threadedMessagesConfiguration sets configuration for threaded messages
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited