updateWithNext method

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

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,
  Completer? popCompleter,
}) {
  return createNode(
    next: next,
    value: value,
    popCompleter: popCompleter,
  );
}