descendants method

int descendants()

Returns the total number of descendants below this one.

Implementation

int descendants() {
  var c = outlines.length; // initially the number of kids

  // now call each one for their descendants
  for (final o in outlines) {
    c += o.descendants();
  }

  return c;
}