PopupMenu class
Constructors
-
PopupMenu({required BuildContext context, required List<
MenuItemProvider> items, MenuConfig config = const MenuConfig(), MenuClickCallback? onClickMenu, VoidCallback? onDismiss, VoidCallback? onShow})
Properties
- config → MenuConfig
-
final
- context ↔ BuildContext
-
Cannot be null
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isShow → bool
-
no setter
-
items
↔ List<
MenuItemProvider> -
getter/setter pair
-
getter/setter pair
- onClickMenu → MenuClickCallback?
-
final
- onDismiss → VoidCallback?
-
callback
final
- onShow → VoidCallback?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
_LayoutP layoutp, ) → Widget -
dismiss(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
show(
{Rect? rect, GlobalKey< State< ? widgetKey}) → voidStatefulWidget> > -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited