debugSemantics property

SemanticsNode debugSemantics

The semantics of this render object.

Exposed only for testing and debugging. To learn about the semantics of render objects in production, obtain a SemanticsHandle from PipelineOwner.ensureSemantics.

Only valid when asserts are enabled. In release builds, always returns null.

Implementation

SemanticsNode get debugSemantics {
  SemanticsNode result;
  assert(() {
    result = _semantics;
    return true;
  }());
  return result;
}