nextSiblingOf method

LogSpan? nextSiblingOf(
  1. LogSpan child
)

Gets the next sibling of child, or null if last.

Implementation

LogSpan? nextSiblingOf(LogSpan child) {
  final idx = _children.indexOf(child);
  return idx >= 0 && idx < _children.length - 1 ? _children[idx + 1] : null;
}