ReactionListConfiguration class

ReactionListConfiguration is a class which is used to set the configuration for the reaction list It takes reactionRequestBuilder, errorStateView, errorStateText, loadingStateView, emptyStateView, emptyStateText, avatarStyle, onTap, reactionListStyle, selectedReaction, listItemStyle, messageObject, theme as a parameter

ReactionListConfiguration(
emptyStateText: "No Reactions Available",
avatarStyle: AvatarStyle()
);

Constructors

ReactionListConfiguration({ReactionsRequestBuilder? reactionRequestBuilder, WidgetBuilder? errorStateView, String? errorStateText, WidgetBuilder? loadingStateView, WidgetBuilder? emptyStateView, String? emptyStateText, Widget? loadingIcon, AvatarStyle? avatarStyle, dynamic onTap(Reaction, BaseMessage)?, ReactionListStyle? reactionListStyle, String? selectedReaction, ListItemStyle? listItemStyle, BaseMessage? messageObject, CometChatTheme? theme})

Properties

avatarStyle AvatarStyle?
avatarStyle is a parameter used to set the style for avatar
final
emptyStateText String?
emptyStateText text to be displayed when the list is empty
final
emptyStateView WidgetBuilder?
emptyStateView returns view fow empty state
final
errorStateText String?
errorStateText is a parameter used to show the error state text in case of any error
final
errorStateView WidgetBuilder?
errorStateView is a parameter used to show the error state view in case of any error
final
hashCode int
The hash code for this object.
no setterinherited
listItemStyle ListItemStyle?
listItemStyle is a parameter used to set the style for the list item
final
loadingIcon Widget?
loadingIcon is a parameter used to show the loading icon in case of loading
final
loadingStateView WidgetBuilder?
loadingStateView is a parameter used to show the loading state view in case of loading
final
messageObject BaseMessage?
messageObject is a parameter used to set the message object for which the reactions are to be fetched
final
onTap ↔ dynamic Function(Reaction, BaseMessage)?
onTap is a parameter used to perform some action on click of a particular reaction
getter/setter pair
reactionListStyle ReactionListStyle?
reactionListStyle is a parameter used to set the style for the reaction list
final
reactionRequestBuilder ReactionsRequestBuilder?
reactionRequestBuilder is a parameter used to fetch the reactions of a particular message
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedReaction String?
selectedReaction is a parameter used to set the selected reaction
final
theme CometChatTheme?
theme sets 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