StyledPopupMenuButton<T> class

Inheritance

Constructors

StyledPopupMenuButton({Key? key, required PopupMenuItemBuilder<T> itemBuilder, Style? menuStyle, T? initialValue, PopupMenuItemSelected<T>? onSelected, PopupMenuCanceled? onCanceled, required Widget? child, Offset offset = Offset.zero, bool enabled = true, required Style style, Style? pressedStyle, Style? hoveredStyle, Style? disabledStyle, Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.linear})
const

Properties

child Widget?
If provided, child is the widget used for this button and the button will utilize an InkWell for taps.
final
curve Curve
final
disabledStyle Style?
final
duration Duration
final
enabled bool
Whether this popup menu button is interactive.
final
hashCode int
The hash code for this object.
no setterinherited
hoveredStyle Style?
final
initialValue → T?
The value of the menu item, if any, that should be highlighted when the menu opens.
final
itemBuilder PopupMenuItemBuilder<T>
Called when the button is pressed to create the items to show in the menu.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
final
offset Offset
The offset applied to the Popup Menu Button.
final
onCanceled PopupMenuCanceled?
Called when the user dismisses the popup menu without selecting an item.
final
onSelected PopupMenuItemSelected<T>?
Called when the user selects a value from the popup menu created by this button.
final
pressedStyle Style?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style Style
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _StyledPopupMenuButtonState<T>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited