NavigationService class
Methods
-
backtrack()
→ void
-
Pops the current route off the navigation stack.
-
backtrackWithResult<T extends Object?>([T? result])
→ void
-
Pops with result
-
canPop()
→ bool
-
Check if can pop
-
freshStartTo(Widget destination, {dynamic arguments, TransitionType? transition, Duration? duration, bool maintainState = true, bool fullscreenDialog = false})
→ Future
-
Clear stack and navigate to widget
-
freshStartToName(String routeName, {dynamic arguments, TransitionType? transition, Duration? duration})
→ Future
-
Clear stack and navigate to named route
-
getCurrentRouteName()
→ String?
-
Get current route name
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
popUntil(String routeName)
→ void
-
Pop until specific route
-
sailTo(Widget destination, {dynamic arguments, TransitionType? transition, Duration? duration, bool maintainState = true, bool fullscreenDialog = false})
→ Future
-
Navigate to widget with custom transition
-
sailToName(String routeName, {dynamic arguments, TransitionType? transition, Duration? duration})
→ Future
-
Navigate to named route with custom transition
-
swapTo(Widget destination, {dynamic arguments, TransitionType? transition, Duration? duration, bool maintainState = true, bool fullscreenDialog = false})
→ Future
-
Replace current route with widget
-
swapToName(String routeName, {dynamic arguments, TransitionType? transition, Duration? duration})
→ Future
-
Replace current route with named route
-
toString()
→ String
-
A string representation of this object.
inherited