switchRoute property
Switches the current route to the provided route by moving it from its previous position in the stack to the top or adding it to the top if it is not already present in the stack's history.
Implementation
late final void Function(String route) switchRoute;