ParseRoute class

Constructors

ParseRoute()

Properties

current HistoryEntry
Returns the current route.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearHistory() → void
Clears the navigation history
getLastVisitedSubroute(String basePath) String?
Returns the last visited subroute from the given base path
getRoutesFrom(String basePath) List<String>
Returns a list of routes from the given base path If the base path is a subroute, it will return the parent route and its siblings If the base path is a top-level route, it will return the current route and its children
getRoutesFromCurrent() List<String>
Returns a list of routes from the current route If the current route is a subroute, it will return the parent route and its siblings If the current route is a top-level route, it will return the current route and its children
getSubRoutesFrom(String basePath) List<String>
Returns a list of subroutes from the given base path If the base path is a subroute, it will return its siblings If the base path is a top-level route, it will return its children
getSubRoutesFromCurrent() List<String>
Returns a list of subroutes from the current route If the current route is a subroute, it will return its siblings If the current route is a top-level route, it will return its children
isRegistered(String path) bool
Returns a list of all registered routes
matchRoute(String path) MatchResult?
Matches a route against the registered routes. Returns a MatchResult if a route is found, otherwise returns null.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pop() → void
Pops the last route from the navigation stack.
push(String path) → void
Pushes a new route to the navigation stack.
registerRouter(String path) → void
Registers a new route. The path can contain parameters, e.g. '/user/:id'. The path can also contain wildcards, e.g. '/user/*'. The path can also contain query parameters, e.g. '/user?foo=bar'.
replaceLast(String path) → void
Replaces the last route with a new route.
toString() String
A string representation of this object.
inherited

Operators

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