canGoUp property
bool
get
canGoUp
Check if you can navigate up the route hierarchy (to a parent)
Implementation
bool get canGoUp {
var path = currentPath.normalizePath();
if (path == '/' || path == _initialLocation?.location.normalizePath())
return false;
path = (_getParentPath(path) ?? '/').normalizePath();
path = path == '' ? '/' : path;
return goRouter.hasRouteMatch(path);
}