close static method
Closes all open debug routes.
Implementation
static void close([BuildContext? context]) {
final navigator = _resolveNavigator(context);
if (navigator == null) return;
navigator.popUntil(
(route) => route.isFirst || route.settings.name != routeName,
);
}