updateWithValue method

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

Prioritizes value over next.

  • next is what the node is currently pointing towards.
  • value is the value the returned node is expected to contain.

Implementation

RouteNode updateWithValue({
  RouteNode? next,
  required T value,
  Completer? popCompleter,
}) {
  return createNode(
    next: next,
    value: value,
    popCompleter: popCompleter,
  );
}