DoNothingAndStopPropagationIntent class
An Intent that is bound to a DoNothingAction, but, in addition to not performing an action, also stops the propagation of the key event bound to this intent to other key event handlers in the focus chain.
Attaching a DoNothingAndStopPropagationIntent to a Shortcuts.shortcuts
mapping is one way to disable a keyboard shortcut defined by a widget higher
in the widget hierarchy. In addition, the bound DoNothingAction will
return false from DoNothingAction.consumesKey, causing the key bound to
this intent to be passed on to the platform embedding as "not handled" with
out passing it to other key handlers in the focus chain (e.g. parent
Shortcuts
widgets higher up in the chain).
This intent cannot be subclassed.
See also:
- DoNothingIntent, a similar intent that will handle the key event.
Constructors
- DoNothingAndStopPropagationIntent()
-
Creates a const DoNothingAndStopPropagationIntent.
constfactory
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
-
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