updateWithNext method
Prioritizes next
over value
.
value
is the current value of the node.next
is what the returned node is expected to be pointing to.
Implementation
RouteNode updateWithNext({
RouteNode? next,
required T value,
}) {
return createNode(next: next, value: value);
}