semanticsEnabled property

bool get semanticsEnabled

Whether the user has requested that updateSemantics be called when the semantic contents of window changes.

Accessing this value returns the value contained in the PlatformDispatcher singleton, so instead of getting it from here, you should consider getting it from WidgetsBinding.instance.platformDispatcher instead (or, when WidgetsBinding isn't available, from PlatformDispatcher.instance). The reason this value forwards to the PlatformDispatcher is to provide convenience for applications that only use a single main window.

The onSemanticsEnabledChanged callback is called whenever this value changes.

Implementation

bool get semanticsEnabled => platformDispatcher.semanticsEnabled;