navigateBack method

bool navigateBack()

Pops until last item in stack. Returns true if there is nothing to pop.

Implementation

bool navigateBack() {
  if (canPop) {
    pop();

    return false;
  }

  return true;
}