canPop method
Returns true
if there is more than 1 page on the stack.
Implementation
bool canPop() {
bool canPop;
final router = App.goRouter;
if (router == null) {
canPop = Navigator.canPop(this);
} else {
canPop = router.canPop();
}
return canPop;
}