debugChildCount property

int get debugChildCount

Returns the number of children in this line for debugging purposes.

Traverses the child linked list to count items. Only used in assertions.

Implementation

int get debugChildCount {
  int count = 0;
  ChildLayout? child = firstChild;
  while (child != null && child != lastChild) {
    count++;
    child = child.nextSibling;
  }
  return count;
}