RouteNode class
Represents a node in the routing tree.
Constructors
- RouteNode.new(String path, String originalPath, {RouteNode? parent})
Properties
-
children
→ List<
RouteNode> -
final
- fullPath → String
-
Gets the full path of the node.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isParameter → bool
-
Checks if the node represents a parameter (e.g., ":id").
no setter
- originalPath → String
-
final
- parent ↔ RouteNode?
-
getter/setter pair
- path → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
findChild(
String name) → RouteNode? - Finds a child node by name.
-
findMatchingChild(
String name) → RouteNode? - Finds a matching child node.
-
findOrAddChild(
String name, String fullPath) → RouteNode - Finds a child node by name or creates a new one.
-
matches(
String name) → bool - Checks if the node matches a given name.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeChild(
RouteNode child) → void - Removes a child node.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited