activeRouterCanPop method

bool activeRouterCanPop({
  1. bool ignorePagelessRoutes = false,
})

returns true if the active child controller can pop

Implementation

bool activeRouterCanPop({bool ignorePagelessRoutes = false}) {
  final innerRouter = _innerControllerOf(currentChild?.key);
  if (innerRouter != null) {
    return innerRouter.canPop(
      ignorePagelessRoutes: ignorePagelessRoutes,
      ignoreParentRoutes: true,
    );
  }
  return false;
}