SemanticsController class

Class that programmatically interacts with the Semantics tree.

Allows for testing of the Semantics tree, which is used by assistive technology, search engines, and other analysis software to determine the meaning of an application.

Should be accessed through WidgetController.semantics. If no custom implementation is provided, a default SemanticsController will be created.

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

copy(FinderBase<SemanticsNode> finder) → void
Performs a SemanticsAction.copy action on the SemanticsNode found by finder.
customAction(FinderBase<SemanticsNode> finder, CustomSemanticsAction action) → void
Performs a SemanticsAction.customAction action on the SemanticsNode found by finder.
cut(FinderBase<SemanticsNode> finder) → void
Performs a SemanticsAction.cut action on the SemanticsNode found by finder.
decrease(FinderBase<SemanticsNode> finder) → void
Performs a SemanticsAction.decrease action on the SemanticsNode found by finder.
didGainAccessibilityFocus(FinderBase<SemanticsNode> finder) → void
Performs a SemanticsAction.didGainAccessibilityFocus action on the SemanticsNode found by finder.
didLoseAccessibilityFocus(FinderBase<SemanticsNode> finder) → void
Performs a SemanticsAction.didLoseAccessibilityFocus action on the SemanticsNode found by finder.
dismiss(FinderBase<SemanticsNode> finder) → void
Performs a SemanticsAction.dismiss action on the SemanticsNode found by finder.
find(FinderBase<Element> finder) SemanticsNode
Attempts to find the SemanticsNode of first result from finder.
increase(FinderBase<SemanticsNode> finder) → void
Performs a SemanticsAction.increase action on the SemanticsNode found by finder.
longPress(FinderBase<SemanticsNode> finder) → void
Performs a SemanticsAction.longPress action on the SemanticsNode found by finder.
moveCursorBackwardByCharacter(FinderBase<SemanticsNode> finder, {bool shouldModifySelection = false}) → void
Performs a SemanticsAction.moveCursorBackwardByCharacter action on the SemanticsNode found by finder.
moveCursorBackwardByWord(FinderBase<SemanticsNode> finder, {bool shouldModifySelection = false}) → void
Performs a SemanticsAction.moveCursorBackwardByWord action on the SemanticsNode found by finder.
moveCursorForwardByCharacter(FinderBase<SemanticsNode> finder, {bool shouldModifySelection = false}) → void
Performs a SemanticsAction.moveCursorForwardByCharacter action on the SemanticsNode found by finder.
moveCursorForwardByWord(FinderBase<SemanticsNode> finder, {bool shouldModifySelection = false}) → void
Performs a SemanticsAction.moveCursorForwardByWord action on the SemanticsNode found by finder.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paste(FinderBase<SemanticsNode> finder) → void
Performs a SemanticsAction.paste action on the SemanticsNode found by finder.
performAction(FinderBase<SemanticsNode> finder, SemanticsAction action, {Object? args, bool checkForAction = true}) → void
Performs the given SemanticsAction on the SemanticsNode found by finder.
scrollDown({FinderBase<SemanticsNode>? scrollable}) → void
Performs a SemanticsAction.scrollDown action on the SemanticsNode found by scrollable or the first scrollable node in the default semantics tree if no scrollable is provided.
scrollLeft({FinderBase<SemanticsNode>? scrollable}) → void
Performs a SemanticsAction.scrollLeft action on the SemanticsNode found by scrollable or the first scrollable node in the default semantics tree if no scrollable is provided.
scrollRight({FinderBase<SemanticsNode>? scrollable}) → void
Performs a SemanticsAction.scrollRight action on the SemanticsNode found by scrollable or the first scrollable node in the default semantics tree if no scrollable is provided.
scrollUp({FinderBase<SemanticsNode>? scrollable}) → void
Performs a SemanticsAction.scrollUp action on the SemanticsNode found by scrollable or the first scrollable node in the default semantics tree if no scrollable is provided.
setSelection(FinderBase<SemanticsNode> finder, {required int base, required int extent}) → void
Performs a SemanticsAction.setSelection action on the SemanticsNode found by finder.
setText(FinderBase<SemanticsNode> finder, String text) → void
Performs a SemanticsAction.setText action on the SemanticsNode found by finder using the given text.
showOnScreen(FinderBase<SemanticsNode> finder) → void
Performs a SemanticsAction.showOnScreen action on the SemanticsNode found by finder.
simulatedAccessibilityTraversal({FinderBase<Element>? start, FinderBase<Element>? end, FinderBase<SemanticsNode>? startNode, FinderBase<SemanticsNode>? endNode, FlutterView? view}) Iterable<SemanticsNode>
Simulates a traversal of the currently visible semantics tree as if by assistive technologies.
tap(FinderBase<SemanticsNode> finder) → void
Performs a SemanticsAction.tap action on the SemanticsNode found by finder.
toString() String
A string representation of this object.
inherited

Operators

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