popAndPushAll method
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);
}