QRNavigation extension

on

Methods

back([dynamic result]) Future<PopResult>
try to pop the last active navigator or go to last path in the history
popUntilOrPush(String path) Future<void>
Push this Path on the top of the stack, or pop unit it if it's already in the stack
popUntilOrPushName(String name, {Map<String, dynamic>? params}) Future<void>
Push the page with this name on the top of the stack, or pop unit it if it's already in the stack
push(String path) Future<void>
Push this Path on the top of the stack
pushName(String name, {Map<String, dynamic>? params}) Future<void>
Push tha page with this name and this params on the top of the stack
replace(String path, String withPath) Future<void>
Replace this path with this withPath
replaceAll(String path) Future<void>
Remove all pages and add the page with path
replaceAllWithName(String name, {Map<String, dynamic>? params}) Future<void>
remove all pages with the page with this path and this params
replaceLast(String path) Future<void>
Remove the last page in the stack and add the one with this path
replaceLastName(String name, {Map<String, dynamic>? params}) Future<void>
Remove the last page in the stack and add the one with this name
replaceName(String name, String withName, {Map<String, dynamic>? params, Map<String, dynamic>? withParams}) Future<void>
Replace the page with the page with this name and this params
switchTo(String path) Future<void>
Push this path on the top of the stack if not already on the stack or bring it to top if already on the stack This is useful to switch between pages without losing the states of them the defiance between this and popUntilOrPush is that no page will be popped
switchToName(String name, {Map<String, dynamic>? params}) Future<void>
Push this route name on the top of the stack if not already on the stack or bring it to top if already on the stack This is useful to switch between pages without losing the states of them
to<T>(String path, {bool ignoreSamePath = true, PageAlreadyExistAction? pageAlreadyExistAction, bool waitForResult = false}) Future<T?>
Navigate to this path. The package will try to get the right navigator to this path. Set ignoreSamePath to true to ignore the navigation if the current path is the same as the route path Use pageAlreadyExistAction to define what to do when page already is in the stack you can remove the page or just bring it to the top
toName<T>(String name, {Map<String, dynamic>? params, bool ignoreSamePath = true, PageAlreadyExistAction? pageAlreadyExistAction, bool waitForResult = false}) Future<T?>
Go to a route with given name and params Set ignoreSamePath to true to ignore the navigation if the current path is the same as the route path Use pageAlreadyExistAction to define what to do when page already is in the stack you can remove the page or just bring it to the top