goUp method

void goUp()

Navigate to the parent path, if there is any

Implementation

void goUp() {
  if (!canGoUp) return;
  var path = currentPath;
  final parentPath = (_getParentPath(path) ?? '/').normalizePath();
  if (goRouter.hasRouteMatch(parentPath) && parentPath != path) {
    goRouter.go(parentPath);
  }
}