updateWithValue method

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

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

@override
RouteNode<RouteValue> updateWithValue({
  RouteNode<RouteValue>? next,
  required ShellValue value,
  Completer? popCompleter,
}) {
  return ShellNode(
    shellBuilder: shellBuilder,
    value: value,
    route: this,
    popCompleter: popCompleter,
  );
}