ParseRouteTree class

addRoutes方法将会在初始化时调用,将树形结构的路由表转化为routes,以供之后 push 时 通过 matchRoute 匹配 MuffinPage, 参数复制等, 封装成RouteDecoder返回

Constructors

ParseRouteTree({required List<MuffinPage> routes})

Properties

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

Methods

addRoute(MuffinPage route) → void
addRoutes(List<MuffinPage> muffinPages) → void
将树形结构,子route拼接父route的path,保存到routes
matchRoute(String name, {Object? arguments}) RouteDecoder
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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