ContextPopupMenuItem class

Represents an individual item within a ContextualMenu.

Constructors

ContextPopupMenuItem({Widget? child, Future<void> onTap()?})
Creates a ContextPopupMenuItem.

Properties

child Widget?
The widget to display for this menu item (e.g., an Icon or Text).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
onTap Future<void> Function()?
The callback to execute when this menu item is tapped.
getter/setter pair
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