CometChatMessageComposerAction class

CometChatMessageComposerAction is the type of menu items allowed to be displayed CometChatMessageComposer


final CometChatMessageComposerAction exampleMessageComposerAction = CometChatMessageComposerAction(
  id: "example",
  title: "Example Action",
  iconUrl: "https://example.com/icon.png",
  iconUrlPackageName: "com.example",
  iconTint: Colors.blue,
  titleStyle: TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
  iconBackground: Colors.grey,
  iconCornerRadius: 8,
  background: Colors.white,
  cornerRadius: 8,
  onItemClick: () {
    // Do something when this message composer action is selected
  },
);

Constructors

CometChatMessageComposerAction({required String id, required String title, String? iconUrl, String? iconUrlPackageName, Color? iconTint, Color? iconBackground, double? iconCornerRadius, Color? background, double? cornerRadius, TextStyle? titleStyle, dynamic onItemClick(BuildContext, User?, Group?)?})
CometChatMessageComposerAction constructor requires id and title while initializing.
const

Properties

background Color?
background is the background color for this message composer action
final
cornerRadius double?
cornerRadius is the border radius for this message composer action
final
hashCode int
The hash code for this object.
no setterinherited
iconBackground Color?
iconBackground is the background color of the icon
final
iconCornerRadius double?
iconCornerRadius is the border radius the icon
final
iconTint Color?
iconTint is the color of the icon
final
iconUrl String?
iconUrl is the path to the icon image for this message composer action
final
iconUrlPackageName String?
iconUrlPackageName is the name of the package where the icon for this message composer action is located
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
title String
title is the name for this message composer action
final
titleStyle TextStyle?
titleStyle is the styling provided to the name of 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