handleBackPressed method
Implementation
Future<bool> handleBackPressed() async {
final Widget? currentWidget = getCurrentWidget();
if (currentWidget is! Screen) {
return false;
}
return await currentWidget.events[ScreenEvent.backPressed]?.run(null) ??
false;
}