debugSemantics property Null safety

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 in debug and profile mode. In release builds, always returns null.

Implementation

SemanticsNode? get debugSemantics {
  if (!kReleaseMode) {
    return _semantics;
  }
  return null;
}