clearStack method

void clearStack()

Remove all the screens from the stack

Implementation

void clearStack() {
  while (_router.router.canPop() == true) {
    _router.router.pop();
  }
}