length property

int get length

Implementation

int get length {
  if (!hasChildren) {
    return 1;
  }

  return children.length;
}