presentFlutterDialogForResult method
Like presentFlutterDialog, but completes with the result the dialog
pops with (null when dismissed without one).
Implementation
@override
Future<Object?> presentFlutterDialogForResult(PageSettings page) async {
pushedPages.add(page);
return resultsByRouteId[page.routeId];
}