yeetOnTop method
Implementation
void yeetOnTop(String path) {
final uri = Uri.parse(path);
_queryParams = {..._queryParams, ...uri.queryParameters};
if (path.startsWith('/')) {
final newPages = _dfs(
_yeet,
uri.path,
0,
)!;
_pages = [
..._pages,
...newPages.where(
(element) => _pages.where((e) => e.path == element.path).isEmpty),
];
notifyListeners();
} else {
final location = Uri.parse(currentConfiguration).path;
yeetOnTop(location + (location != '/' ? '/' : '') + path);
}
}