ParseRouteTree class

A class representing a parsed route tree that manages route matching and manipulation for nested routing structures.

Constructors

ParseRouteTree.new({required List<GetPage> routes})

Properties

hashCode int
The hash code for this object.
no setterinherited
routes List<GetPage>
List of all defined routes in the application.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addRoute<T>(GetPage<T> route) → void
Adds a specific route to the route tree.
addRoutes<T>(List<GetPage<T>> getPages) → void
Adds a list of routes to the route tree.
matchRoute(String name, {PageSettings? arguments}) RouteDecoder
Matches a given name to the appropriate route in the tree and returns a RouteDecoder.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeRoute<T>(GetPage<T> route) → void
Removes a specific route from the route tree.
removeRoutes<T>(List<GetPage<T>> getPages) → void
Removes a list of routes from the route tree.
toString() String
A string representation of this object.
inherited

Operators

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