DraftModeUIDropDownMenuItem class
Single menu item displayed inside a DraftModeUIDropDownMenu.
Provide either screen (to push a route on tap) or onTap (to run a custom callback) — not both.
Constructors
- DraftModeUIDropDownMenuItem({required String title, IconData? icon, Widget? screen, VoidCallback? onTap})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData?
-
final
- onTap → VoidCallback?
-
Alternative to screen: a custom callback executed on tap.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screen → Widget?
-
When set, tapping the item pushes this widget via a platform-aware route.
final
- title → String
-
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