updateWithNext method

  1. @override
RouteNode<RouteValue> updateWithNext({
  1. RouteNode<RouteValue>? next,
  2. required ShellValue value,
})
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,
}) {
  return ShellNode(
    shellBuilder: shellBuilder,
    value: value.withNext(next!),
    route: this,
  );
}