popAndPushAll method

Future<void> popAndPushAll(
  1. List<PageRouteInfo> routes, {
  2. dynamic onFailure,
})

Implementation

Future<void> popAndPushAll(List<PageRouteInfo> routes, {onFailure}) {
  assert(routes.isNotEmpty);
  final scope = _findStackScope(routes.first);
  scope.pop();
  return scope._pushAll(routes, onFailure: onFailure, notify: true);
}