push method
Pushes a route, creating a new native Activity/ViewController.
For InlayFlutterRoute: Opens a new Activity/ViewController with
a new Flutter engine. This is NOT the same as in-Flutter navigation.
See class documentation for when to use this vs Navigator.of(context).
For InlayNativeRoute: Opens a native Activity/ViewController.
Implementation
@override
Future<void> push(InlayRoute route) async {
pushedRoutes.add(route);
pushedPages.add(route.toPageSettings());
}