TContextMenuItem class

A standard actionable item in a TContextMenu.

Inheritance

Constructors

TContextMenuItem({required String text, dynamic icon, String? shortcut, bool isDestructive = false, bool isEnabled = true, VoidCallback? onTap})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
icon → dynamic
Optional leading icon (IconData or Widget).
final
isDestructive → bool
Whether this is a destructive/danger action (rendered with danger color).
final
isEnabled → bool
Whether the item is interactive.
final
onTap → VoidCallback?
Callback executed when the item is tapped.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shortcut → String?
Optional keyboard shortcut label (e.g. '⌘C', 'Delete').
final
text → String
The label text of the menu item.
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