RouterNode<T extends Object?> class
Constructors
-
RouterNode({required T? data, required Children<
T> children, required String name, required bool isParameter}) - RouterNode.fromPath(String path)
-
factory
Properties
-
children
→ Children<
T> -
final
- data ↔ T?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDataNode → bool
-
no setter
- isParameter → bool
-
final
-
leftMostLeaf
→ RouterNode<
T> -
no setter
- name → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addAndMergeSubtree(
RouterNode< T> other) → void -
copyWith(
{T? data, String? name, bool? isParameter, Map< String, RouterNode< ? children}) → RouterNode<T> >T> -
flatten(
) → RouterNode< T> -
forEachDataNode(
void callback(RouterNode< T> node)) → void -
match(
String path) → List< RouterPathMatch< T> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
{int indent = 0}) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
builder<
T extends Object?> (String path, {T? data, List< RouterNode< children = const []}) → RouterNode<T> >T>