ContextMenuDelegate class abstract
Abstract strategy for handling secondary clicks (right-click) on tree nodes.
Why: Decouples the tree's logic from specific UI implementations (Material, Cupertino, MacosUI).
Implement this to show custom menus or use MaterialContextMenuDelegate for a standard popup.
- Implementers
Constructors
- ContextMenuDelegate()
-
Abstract constant constructor.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
actionsFor(
VisibleNode node) → List< NodeAction> -
Returns the list of actions available for the specific
node. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
wrapWithMenu(
BuildContext context, Widget child, VisibleNode node) → Widget -
Wraps the row
childwith a gesture detector that triggers the menu.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited