The Flutter semantics package.

To use, import package:flutter/semantics.dart.

The SemanticsEvent classes define the protocol for sending semantic events to the platform.

The SemanticsNode hierarchy represents the semantic structure of the UI and is used to by the platform-specific accessibility services.

Classes

AnnounceSemanticsEvent
An event for a semantic announcement. [...]
ScrollCompletedSemanticsEvent
Notifies that a scroll action has been completed. [...]
SemanticsAction
The possible actions that can be conveyed from the operating system accessibility APIs to a semantics node.
SemanticsConfiguration
Describes the semantic information associated with the owning RenderObject. [...]
SemanticsData
Summary information about a SemanticsNode object. [...]
SemanticsEvent
An event sent by the application to notify interested listeners that something happened to the user interface (e.g. a view scrolled). [...]
SemanticsNode
A node that represents some semantic data. [...]
SemanticsOwner
Owns SemanticsNode objects and notifies listeners of changes to the render tree semantics. [...]
SemanticsProperties
Contains properties used by assistive technologies to make the application more accessible. [...]
SemanticsService
Allows access to the platform's accessibility services. [...]
SemanticsTag
A tag for a SemanticsNode. [...]

Functions

debugResetSemanticsIdCounter() → void
In tests use this function to reset the counter used to generate SemanticsNode.id.

Enums

DebugSemanticsDumpOrder
Used by debugDumpSemanticsTree to specify the order in which child nodes are printed.

Typedefs

SemanticsNodeVisitor(SemanticsNode node) bool
Signature for a function that is called for each SemanticsNode. [...]