PopupMenuFunctionsMixin<T> mixin
Supply the useful popup menu functions
- Mixin applications
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
-
onCanceled(
) → void - Called when the user dismisses the popup menu without selecting an item.
-
onChild(
) → Widget? - The widget used for this button
-
onClipBehavior(
) → Clip? - The clip shape of the menu.
-
onColor(
) → Color? - The background color used for the menu
-
onConstraints(
) → BoxConstraints? - Make the menu wider than the default maximum width
-
onElevation(
) → double? - This controls the size of the shadow below the menu.
-
onEnabled(
) → bool? - Whether this popup menu button is interactive
-
onEnableFeedback(
) → bool? - Whether detected gestures should provide acoustic and/or haptic feedback
-
onIcon(
) → Widget? - The icon is used for this button
-
onIconSize(
) → double? - the size of the Icon.
-
onInitialValue(
) → T? - The value of the menu item, if any, that should be highlighted when the menu opens.
-
onItemBuilder(
) → PopupMenuItemBuilder< T> ? - Explicitly pass a BuildContext: List<PopupMenuEntry
-
onItems(
) → List< T> ? - List of menu items to appear in the popup menu.
-
onMenuEntries(
) → List< PopupMenuEntry< ?T> > - List of menu entry items of type T to appear in the popup menu.
-
onOffset(
) → Offset? - The offset is applied relative to the initial position
-
onOpened(
) → void - Called when the popup menu is shown.
-
onPadding(
) → EdgeInsetsGeometry? - In some cases, it's useful to be able to set the padding to zero.
-
onPosition(
) → PopupMenuPosition? - Whether the menu is positioned over or under the popup menu button
-
onSelected(
T value) → void - Called when the user selects a value from the popup menu created by this button.
-
onShape(
) → ShapeBorder? - The shape used for the menu
-
onSplashRadius(
) → double? - The splash radius. If null, default splash radius of InkWell or IconButton is used.
-
onTooltip(
) → String? - Text that describes the action that will occur when the button is pressed.
-
setMenu(
) → void - Like setState() but for the popup menu
-
showButtonMenu(
) → void - Show the popup menu
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited