childrenCanPop method

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

returns true if any child controller can pop

Implementation

bool childrenCanPop({
  bool ignorePagelessRoutes = false,
}) {
  return _childControllers.any(
    (c) => c.canPop(
      ignorePagelessRoutes: ignorePagelessRoutes,
      ignoreParentRoutes: true,
    ),
  );
}