RouteNode class
Constructors
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, override
- isHandleNode → bool
-
read-only
- isLeaf → bool
-
read-only
- isRoot → bool
-
read-only
- key → String
-
final
- level → int
-
final
-
middlewares
→ Map<
String, List< RouteMiddlewareWrap> > -
final
- name → String
-
read-only
-
paramChildren
→ List<
RouteNode> -
final
- parent → RouteNode
-
final
-
partChildren
→ Map<
String, RouteNode> -
final
- path → String
-
read-only
- type → NodeType
-
read-only
- wildcardChild ↔ RouteNode
-
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
findOrAddChild(
RouteNode node, [ String method = DEFAULT_METHOD ]) → RouteNode - 查找或者添加节点,如果当前节点在子节点中可以被匹配到,则拿到对应节点,否则就添加节点到当前节点对应类型的子节点中 @param node 要添加的节点
-
getDefaultHandler(
) → RouteHandler -
getHandler(
String key) → RouteHandler - 根据key获取当前节点上的处理器
-
matchChildNode(
RouteNode node, [ String method = DEFAULT_METHOD ]) → RouteNode -
matchParamChildren(
String pathPart, int start) → MatchResult - 参数路由,从给定起始点开始匹配,可能会回溯
-
matchPartChildren(
String pathPart) → MatchResult - 路径部分直接匹配
-
matchWildcardChild(
String pathPart) → MatchResult - 参数路由,从给定起始点开始匹配,可能会回溯
-
setDefaultHandler(
RouteHandler handler) → bool -
setHandler(
String key, RouteHandler handler) → bool - 给节点设置处理器
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
override