updateWithNext method

RouteNode<RouteValue> updateWithNext({
  1. RouteNode<RouteValue>? next,
  2. required T value,
})

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);
}