ReactionsConfiguration class
ReactionsConfiguration is a class which is used to set the configuration for the reactions It takes theme, onReactionTap, onReactionLongPress, reactionsStyle as a parameter
ReactionsConfiguration(
reactionList: reactionList,
theme: theme,
onReactionTap: (reaction) {
print("reaction pressed");
},
);
Constructors
- ReactionsConfiguration({CometChatTheme? theme, dynamic onReactionTap(String? reaction)?, dynamic onReactionLongPress(String? reaction)?, ReactionsStyle? reactionsStyle})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onReactionLongPress → dynamic Function(String? reaction)?
-
onReactionLongPress is a callback which gets called when a reaction is long pressed
final
- onReactionTap → dynamic Function(String? reaction)?
-
onReactionTap is a callback which gets called when a reaction is pressed
final
- reactionsStyle → ReactionsStyle?
-
reactionsStyle is a parameter used to set the style for the reactions
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- 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