PerformableActionsContext class

A context for a PerformableActionsBuilder.

Constructors

PerformableActionsContext({required List<PerformableAction> actions, required Map<CustomSemanticsAction, VoidCallback> customSemanticActions, required List<Widget> menuChildren, required Map<ShortcutActivator, VoidCallback> bindings})
Create an instance.
const
PerformableActionsContext.fromActions(List<PerformableAction> actions, {bool closeMenuOnEscape = true})
Create an instance from an actions list.
factory

Properties

actions → List<PerformableAction>
The actions for this context.
final
bindings → Map<ShortcutActivator, VoidCallback>
A Map which can be fed to CallbackShortcuts to provide shortcuts for a Widget.
final
customSemanticActions → Map<CustomSemanticsAction, VoidCallback>
The custom semantics actions which have been built from actions.
final
hashCode → int
The hash code for this object.
no setterinherited
The menu items which have been built from actions.
final
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
toString() → String
A string representation of this object.
inherited

Operators

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