replaceWith method
Replaces this span in its parent with newSpan.
Returns true if replaced, false if this span has no parent.
Implementation
@override
bool replaceWith(LogSpan newSpan) {
final p = _parent;
if (p == null) return false;
p._replaceChild(this, newSpan);
return true;
}