semanticsEnabled property

bool semanticsEnabled

Whether semantics information must be collected.

Returns true if either the platform has requested semantics information to be generated or if ensureSemantics has been called otherwise.

To get notified when this value changes register a listener with addSemanticsEnabledListener.

Implementation

bool get semanticsEnabled {
  assert(_semanticsEnabled.value == (_outstandingHandles > 0));
  return _semanticsEnabled.value;
}