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, {Assertiveness assertiveness = Assertiveness.polite})
Constructs an event that triggers an announcement by the platform.
const

Properties

assertiveness Assertiveness
Determines whether the announcement should interrupt any existing announcement, or queue after it.
final
hashCode int
The hash code for this object.
no setterinherited
message String
The message to announce.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textDirection TextDirection
Text direction for message.
final
type String
The type of this event.
finalinherited

Methods

getDataMap() Map<String, dynamic>
Returns the event's data object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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
A string representation of this object.
inherited

Operators

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