Intent class

A class representing a particular configuration of an action.

This class is what a key map in a ShortcutMap has as values, and is used by an ActionDispatcher to look up an action and invoke it, giving it this object to extract configuration information from.

If this intent returns false from isEnabled, then its associated action will not be invoked if requested.

Inheritance

Constructors

Intent(LocalKey key)
A const constructor for an Intent. [...]
const

Properties

key LocalKey
The key for the action this intent is associated with.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
override
isEnabled(BuildContext context) bool
Returns true if the associated action is able to be executed in the given context. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.debug }) String
Returns 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 ==(dynamic other) bool
The equality operator. [...]
inherited