clearAndPushAll method

Future<void> clearAndPushAll(
  1. List<Uri> uris, {
  2. List? params,
})

clear the list of pages and then push multiple Uri at once

Implementation

Future<void> clearAndPushAll(List<Uri> uris, {List<dynamic>? params}) {
  _pages.clear();
  _uris.clear();
  if (kIsWeb) {
    VxNav.replaceUrl(uris.first);
  }
  return pushAll(uris, params: params);
}