onClose method
Implementation
void onClose(Event event) {
// onBack(Event event)
//OVERLAY.OverlayEntry? overlay = context.findAncestorWidgetOfExactType<OVERLAY.OverlayEntry>();
TabView? tabview = context.findAncestorWidgetOfExactType<TabView>();
if (tabview != null) return;
event.handled = true;
String? until = fromMap(event.parameters, 'until');
NavigationManager().back(until ?? 1);
}