navigateAll method
Preforms pop-until finds cosponsoring route with routes
.first
then pushes all routes
if onFailure
callback is provided, navigation errors will be passed to it
otherwise they'll be thrown
Implementation
Future<void> navigateAll(
List<RouteMatch> routes, {
OnNavigationFailure? onFailure,
}) {
return _navigateAll(routes, onFailure: onFailure);
}