clearStack method
Remove all the screens from the stack
Implementation
void clearStack() {
while (_router.router.canPop() == true) {
_router.router.pop();
}
}
Remove all the screens from the stack
void clearStack() {
while (_router.router.canPop() == true) {
_router.router.pop();
}
}