AnnounceSemanticsEvent class

An event for a semantic announcement.

This should be used for announcement that are not seamlessly announced by the system as a result of a UI state change.

For example a camera application can use this method to make accessibility announcements regarding objects in the viewfinder.

When possible, prefer using mechanisms like Semantics to implicitly trigger announcements over using this event.

Inheritance

Constructors

AnnounceSemanticsEvent(String message, TextDirection textDirection)
Constructs an event that triggers an announcement by the platform.
const

Properties

message String
The message to announce. [...]
final
textDirection TextDirection
Text direction for message. [...]
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
type String
The type of this event. [...]
final, inherited

Methods

getDataMap() Map<String, dynamic>
Returns the event's data object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toMap({int nodeId }) Map<String, dynamic>
Converts this event to a Map that can be encoded with StandardMessageCodec. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited