NavigationService class

Constructors

factory

Properties

hashCode int
The hash code for this object.
no setterinherited
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

defaultDuration Duration
Get current default duration
no setter
defaultTransition TransitionType
Get current default transition
no setter

Static Methods

setDefaultDuration(Duration duration) → void
Set default duration for all transitions
setDefaultTransition(TransitionType transition) → void
Set default transition type for all navigation