ParseRouteTree class

Constructors

ParseRouteTree({required List<GetPage> routes})

Properties

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

Methods

addRoute<T>(GetPage<T> route) → void
addRoutes<T>(List<GetPage<T>> getPages) → void
matchRoute(String name, {PageSettings? arguments}) RouteDecoder
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
ownMiddlewaresOf(String name) List<GetMiddleware>?
Returns the middlewares declared directly on the registered page matching name, excluding middlewares inherited from ancestor pages during route-tree flattening, or null when no registered page matches name.
removeRoute<T>(GetPage<T> route) → void
removeRoutes<T>(List<GetPage<T>> getPages) → void
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

bindingOwnersOf(List<GetPage> branch) Map<BindingsInterface, String>
Maps every binding instance carried by the leaf of branch (a tree branch as produced by matchRoute) to the name of the page that declared it.