TMenuOverlayController class

Centralized controller for the shared overlay-menu engine.

Supports multiple independent and nested menu root trees by keying state per rootId.

Constructors

TMenuOverlayController()

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

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 Properties

defaultRootId Object
no setter
isLocked bool
getter/setter pair

Static Methods

disposeRoot(Object? rootId) → void
hideAll() → void
Closes all active menus across the entire application.
hideAllExcept(Object? rootId) → void
Hides all roots except the given root and its ancestors/descendants.
hideDeeperThan(int level, {Object? rootId}) → void
Hides any levels deeper than level for the given rootId, and hides any child roots opened from those levels.
hideRoot(Object? rootId) → void
Hides a specific root and all its descendant roots.
isAnyHovered([Object? rootId]) bool
isBranchHovered(Object? rootId) bool
Check if the root or any of its descendants are hovered.
scheduleHide({Object? rootId, Duration delay = const Duration(milliseconds: 125)}) → void
Schedules hiding the given rootId (or all roots if null) after a debounce delay.
setMouseInArea(bool inArea, {Object? rootId}) → void
Backwards-compatibility alias for older code
setPanelHovered(int level, bool hovered, {Object? rootId}) → void
setTriggerHovered(bool hovered, {Object? rootId}) → void
show(int level, OverlayPortalController controller, {Object? rootId, Object? parentRootId}) → void
Show a level controller for a given menu root. If parentRootId is null and level == 0, this is treated as a top-level root and closes any unrelated top-level menus.