previousSiblingOf method

LogSpan? previousSiblingOf(
  1. LogSpan child
)

Gets the previous sibling of child, or null if first.

Implementation

LogSpan? previousSiblingOf(LogSpan child) {
  final idx = _children.indexOf(child);
  return idx > 0 ? _children[idx - 1] : null;
}