pushStack method

  1. @override
Future<void> pushStack(
  1. BeagleRoute route, [
  2. String? controllerId
])
override

Creates and navigates to a new navigation stack where the first route is the parameter route.

The controllerId is an optional parameter and it specifies the NavigationController to use for this specific stack.

Returns a Future that resolves as soon as the navigation completes.

Implementation

@override
Future<void> pushStack(BeagleRoute route, [String? controllerId]) async {
  _thisNavigatorKey.currentState!.push(_createNewRoute(route, _getControllerById(controllerId)));
}