child property

LogSpan? get child

The single child of this span.

Implementation

LogSpan? get child => _child;
set child (LogSpan? newChild)

Sets the child span, updating parent references.

Implementation

set child(LogSpan? newChild) {
  _child?._parent = null;
  _child = newChild;
  if (newChild != null) {
    // Remove from old parent first
    newChild._parent?._removeChild(newChild);
    newChild._parent = this;
  }
}