ActionDispatcher class

An action dispatcher that invokes the actions given to it.

The invokeAction method on this class directly calls the Action.invoke method on the Action object.

For ContextAction actions, if no context is provided, the BuildContext of the primaryFocus is used instead.

See also:

Mixed-in types

Constructors

ActionDispatcher()
Creates an action dispatcher that invokes actions directly.
const

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

debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
invokeAction(covariant Action<Intent> action, covariant Intent intent, [BuildContext? context]) Object?
Invokes the given action, passing it the given intent.
invokeActionIfEnabled(covariant Action<Intent> action, covariant Intent intent, [BuildContext? context]) → (bool, Object?)
Invokes the given action, passing it the given intent, but only if the action is enabled.
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
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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