moveToParent method

void moveToParent()

Sets the current page to the parent.

Throws if there is no parent page.

Implementation

void moveToParent() {
  assert(parent != null);
  setPage(parent as P);
}