canPop method
Check if there is at least one active route to pop
See Navigator.canPop
Implementation
bool canPop() {
final context = _currentContext;
if (context == null) {
if (_enableLogger) {
debugPrint('NavService.canPop: No valid context found.');
}
return false;
}
return Navigator.of(context).canPop();
}