SemanticsActionData enum

An action a node can perform, mirrored from Flutter's SemanticsAction so the core can reason about interactivity without any Flutter dependency.

Only the actions the rule engine consults are modelled; the snapshot builder drops the rest. New values are added as rules come to need them.

Inheritance
Available extensions

Values

tap → const SemanticsActionData

A single tap / click / activation.

longPress → const SemanticsActionData

A long press.

increase → const SemanticsActionData

Increment, e.g. a slider step up.

decrease → const SemanticsActionData

Decrement, e.g. a slider step down.

scrollLeft → const SemanticsActionData

Scroll the content left.

scrollRight → const SemanticsActionData

Scroll the content right.

scrollUp → const SemanticsActionData

Scroll the content up.

scrollDown → const SemanticsActionData

Scroll the content down.

dismiss → const SemanticsActionData

Dismiss the node, e.g. swipe away a snackbar.

focus → const SemanticsActionData

Request input focus.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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
toJson() String
The JSON representation of this action (its name).
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(String json) SemanticsActionData
Parses a SemanticsActionData from its name.

Constants

values → const List<SemanticsActionData>
A constant List of the values in this enum, in order of their declaration.