PerformableActions class

A widget which uses PerformableActionsBuilder to produce a Row with a menu IconButton to the right of child.

The result of buttonBuilder will be removed from the tab order by a FocusScope widget.

Inheritance

Constructors

PerformableActions({required List<PerformableAction> actions, required Widget child, Widget buttonBuilder(BuildContext builderContext, MenuController controller) = defaultButtonBuilder, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, MainAxisSize mainAxisSize = MainAxisSize.max, double spacing = 0.0, VerticalDirection verticalDirection = VerticalDirection.down, MenuController? controller, bool closeMenuOnEscape = true, Key? key})
Create an instance.
const

Properties

actions → List<PerformableAction>
The actions to use.
final
buttonBuilder → Widget Function(BuildContext builderContext, MenuController controller)
The function to call to build the menu button.
final
child → Widget
The widget below this widget in the tree.
final
closeMenuOnEscape → bool
Whether the escape key should close the menu or not.
final
controller → MenuController?
The MenuController to pass to MenuAnchor.
final
crossAxisAlignment → CrossAxisAlignment
The cross axis alignment to apply to the resulting Row.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mainAxisAlignment → MainAxisAlignment
The main axis alignment to pass to the resulting Row.
final
mainAxisSize → MainAxisSize
The main axis size to apply to the resulting Row.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
spacing → double
The spacing to apply to the resulting Row.
final
verticalDirection → VerticalDirection
The vertical direction to apply to the resulting Row.
final

Methods

build(BuildContext context) → Widget
Build the widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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, int wrapWidth = 65}) → 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