ChatMessageAction class

An entry of the message menu.

Annotations

Constructors

ChatMessageAction({required String label, required ValueChanged<ChatMessage> onSelected, IconData? icon, bool isDestructive = false})
Creates a menu action.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
icon → IconData?
Optional leading icon.
final
isDestructive → bool
Shows the entry in the error color, for actions such as "Delete".
final
label → String
Text of the menu entry.
final
onSelected → ValueChanged<ChatMessage>
Called with the message after the menu closes.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

copyText({required String label, IconData? icon}) → ChatMessageAction
Action that copies the text of a TextMessage to the clipboard.