isRoot method

bool isRoot()

Returns true if the page does not have parents.

Implementation

bool isRoot() {
  return parent == null;
}