CometChatMessageComposerAction class
CometChatMessageComposerAction is the type of menu items allowed to be displayed CometChatMessageComposer
final CometChatMessageComposerAction exampleMessageComposerAction = CometChatMessageComposerAction(
id: "example",
title: "Example Action",
icon: Icon(Icons.example),
style: CometChatAttachmentOptionSheetStyle(
backgroundColor: Colors.white,
),
onItemClick: () {
// Do something when this message composer action is selected
},
);
Constructors
- CometChatMessageComposerAction.new({required String id, required String title, Widget? icon, CometChatAttachmentOptionSheetStyle? style, dynamic onItemClick(BuildContext, User?, Group?)?})
-
CometChatMessageComposerAction constructor requires
id
andtitle
while initializing.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget?
-
icon is the icon for this message composer action
final
- id → String
-
id is an unique id for this message composer action
final
- onItemClick → dynamic Function(BuildContext, User?, Group?)?
-
onItemClick executes some task when this message composer action is selected
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → CometChatAttachmentOptionSheetStyle?
-
style is the style for this message composer action
final
- title → String
-
title is the name for this message composer action
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited