RouteTree class

Manages the routing tree and handles route operations.

Constructors

RouteTree.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
matcher RouteMatcher
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tree Map<String, GetPage>
final

Methods

addRoute(GetPage route) → void
Adds a single route to the tree.
addRoutes(List<GetPage> routes) → void
Adds multiple routes to the tree.
matchRoute(String path) RouteTreeResult?
Matches a route by its path.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeRoute(GetPage route) → void
Removes a single route from the tree.
removeRoutes(List<GetPage> routes) → void
Removes multiple routes from the tree.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance RouteTree
final