FastPopupMenuButton2<T> class

Inheritance

Constructors

FastPopupMenuButton2({Key? key, required PopupMenuItemBuilder<T> itemBuilder, required Widget icon, Duration trottleTimeDuration = kFastButtonTrottleTimeDuration, FastButtonEmphasis emphasis = FastButtonEmphasis.low, Clip overlayClipBehavior = Clip.none, Offset overlayOffset = Offset.zero, bool shouldTrottleTime = false, Color? overlayBackgroundColor, Color? overlayShadowColor, bool isEnabled = true, double? overlayElevation, PopupMenuPosition? overlayPosition, Color? highlightColor, Color? disabledColor, String? semanticLabel, Alignment? iconAlignment, BoxConstraints? constraints, T? initialValue, Color? focusColor, Color? hoverColor, String? debugLabel, PopupMenuItemSelected<T>? onSelected, PopupMenuCanceled? onCanceled, bool flexible = false, Color? iconColor, EdgeInsetsGeometry? padding, String? tooltip, VoidCallback? onOpened, double? iconSize, VoidCallback? onTap, FastButtonSize? size})
const

Properties

borderWidth double
The width of the outline border.
finalinherited
constraints BoxConstraints?
The constraints for the button.
finalinherited
debugLabel String?
The debug label of the button to identify it in debug mode.
finalinherited
disabledColor Color?
The color when the button is disabled.
finalinherited
emphasis FastButtonEmphasis
The emphasis of the button.
finalinherited
flexible bool
Whether the button is flexible.
finalinherited
focusColor Color?
The color when the button is focused.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
highlightColor Color?
The color when the button is highlighted.
finalinherited
hoverColor Color?
The color when the button is hovered.
finalinherited
icon Widget
Custom icon for the button.
final
iconAlignment Alignment?
The icon alignment.
final
iconColor Color?
The color of the icon.
final
iconSize double?
The size of the icon.
final
initialValue → T?
The value of the menu item, if any, that should be highlighted when
final
isEnabled bool
Whether the button is enabled.
finalinherited
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
onCanceled PopupMenuCanceled?
Called when the user dismisses the popup menu without selecting an item.
final
onOpened VoidCallback?
Called when the popup menu is shown.
final
onSelected PopupMenuItemSelected<T>?
Called when the user selects a value from the popup menu created by this
final
onTap VoidCallback?
The callback when the button is tapped.
finalinherited
overlayBackgroundColor Color?
The background color of the overlay.
final
overlayClipBehavior Clip
The clip behavior of the overlay.
final
overlayElevation double?
The elevation of the overlay.
final
overlayOffset Offset
The offset of the overlay.
final
overlayPosition PopupMenuPosition?
The position of the overlay relative to the button.
final
overlayShadowColor Color?
The shadow color of the overlay.
final
padding EdgeInsetsGeometry?
The padding of the button.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel String?
The semantic label of the button.
finalinherited
shouldTrottleTime bool
Whether to throttle button taps.
finalinherited
size FastButtonSize?
The size of the button.
finalinherited
tooltip String?
The tooltip message.
finalinherited
trottleTimeDuration Duration
The duration for throttling button taps.
finalinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<FastPopupMenuButton2<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