DraftModeUIDropDownMenu class

A positioned overlay menu anchored to the calling widget's location.

Use the static show entry point to present the menu. Only one menu is visible at a time — calling show while a previous menu is still on screen dismisses it first (same pattern as DraftModeUIToast).

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 Methods

dismiss() → void
Removes the currently visible menu, if any.
show({required BuildContext context, required List<DraftModeUIDropDownMenuItem> items}) → void
Presents a dropdown menu anchored below the widget that owns context.