NavTracker class

Properties

hashCode int
The hash code for this object.
no setterinherited
inTest bool
no getter
no setter
notFoundHandler Handler?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

define(String routePath, {Handler? handler, TransitionType? transitionType, Duration transitionDuration = _defaultTransitionDuration, RouteTransitionsBuilder? transitionBuilder}) → void
generator(RouteSettings routeSettings) Route?
match(String path) AppRouteMatch?
Finds a defined AppRoute for the path value. If no AppRoute definition was found then function will return null.
matchRoute(String? path, {RouteSettings? routeSettings, TransitionType? transitionType, Duration? transitionDuration, RouteTransitionsBuilder? transitionsBuilder, dynamic arguments, bool maintainState = true}) RouteMatch
Attempt to match a route to the provided path.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pop<T>([T? result]) → void
Similar to Navigator.pop
popUntil(bool predicate(Route)) → void
printTree() → void
Prints the route tree so you can analyze it.
resetTree() → void
toNamed(String path, {bool replace = false, bool clearStack = false, bool maintainState = true, bool rootNavigator = false, dynamic arguments, BuildContext? ctx, TransitionType? transition, Duration? transitionDuration, RouteTransitionsBuilder? transitionBuilder, RouteSettings? routeSettings}) Future
toNamedAndRemoveUntil(String route, bool predicate(Route)) → void
toReplaceNamed(String path, {bool clearStack = false, bool maintainState = true, bool rootNavigator = false, dynamic arguments, BuildContext? ctx, TransitionType? transition, Duration? transitionDuration, RouteTransitionsBuilder? transitionBuilder, RouteSettings? routeSettings}) Future
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

I NavTracker
no setter
instance NavTracker
no setter