setSemanticsEnabled method

void setSemanticsEnabled (bool enabled)

Whether the render tree associated with this binding should produce a tree of SemanticsNode objects.

Implementation

void setSemanticsEnabled(bool enabled) {
  if (enabled) {
    _semanticsHandle ??= _pipelineOwner.ensureSemantics();
  } else {
    _semanticsHandle?.dispose();
    _semanticsHandle = null;
  }
}