semanticsEnabled property

  1. @Deprecated('Use WidgetTester.platformDispatcher.semanticsEnabled instead. ' 'Deprecated to prepare for the upcoming multi-window support. ' 'This feature was deprecated after v3.9.0-0.1.pre.')
  2. @override
bool semanticsEnabled
override

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

@Deprecated(
  'Use WidgetTester.platformDispatcher.semanticsEnabled instead. '
  'Deprecated to prepare for the upcoming multi-window support. '
  'This feature was deprecated after v3.9.0-0.1.pre.'
)
@override
bool get semanticsEnabled => platformDispatcher.semanticsEnabled;