Gets the previous sibling of child, or null if first.
child
LogSpan? previousSiblingOf(LogSpan child) { final idx = _children.indexOf(child); return idx > 0 ? _children[idx - 1] : null; }