updateWithNext method

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

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

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