MessageHeaderConfiguration class

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

Constructors

MessageHeaderConfiguration({WidgetBuilder? backButton, Widget? subtitleView(Group? group, User? user, BuildContext context)?, Widget listItemView(Group? group, User? user, BuildContext context)?, bool? disableUserPresence, Widget? protectedGroupIcon, Widget? privateGroupIcon, MessageHeaderStyle? messageHeaderStyle, Widget? chatMessagesHeader({String? avatarUrl, String? groupRef, bool? isGroup, bool? isTyping, bool? online, String? subtitle, required String title, bool? userIsNotBlocked})?, bool? hideBackButton, CometChatTheme? theme, AvatarStyle? avatarStyle, ListItemStyle? listItemStyle, StatusIndicatorStyle? statusIndicatorStyle, List<Widget>? appBarOptions(User? user, Group? group, BuildContext context)?, VoidCallback? onBack})
const

Properties

appBarOptions List<Widget>? Function(User? user, Group? group, BuildContext context)?
appBarOptions gives the tail view in CometChatMessageHeader
final
avatarStyle AvatarStyle?
avatarStyle set style for CometChatAvatar
final
backButton WidgetBuilder?
backButton to set back button widget
final
chatMessagesHeader Widget? Function({String? avatarUrl, String? groupRef, bool? isGroup, bool? isTyping, bool? online, String? subtitle, required String title, bool? userIsNotBlocked})?
final
disableUserPresence bool?
disableUserPresence to toggle functionality to show user's presence
final
hashCode int
The hash code for this object.
no setterinherited
hideBackButton bool?
hideBackButton toggle visibility for back button, default false
final
listItemStyle ListItemStyle?
listItemStyle set style for CometChatListItem
final
listItemView Widget Function(Group? group, User? user, BuildContext context)?
listItemView to set custom list item view
final
messageHeaderStyle MessageHeaderStyle?
MessageHeaderStyle to set styling properties for CometChatMessageHeader
final
onBack VoidCallback?
onBack callback triggered on back button click
final
privateGroupIcon Widget?
privateGroupIcon group icon to be shown for protected groups
final
protectedGroupIcon Widget?
protectedGroupIcon group icon to be shown for protected groups
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusIndicatorStyle StatusIndicatorStyle?
statusIndicatorStyle set style for status indicator
final
subtitleView Widget? Function(Group? group, User? user, BuildContext context)?
subtitleView to set custom subtitle view
final
theme CometChatTheme?
theme set custom theme
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