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
Methods
-
addRoute<
T> (GetPage< T> route) → void - Adds a specific route to the route tree.
-
addRoutes<
T> (List< GetPage< getPages) → voidT> > - 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< getPages) → voidT> > - 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