MutateNodeCallback typedef

MutateNodeCallback = RouteNode Function(MutableRouteNode routeNode)

Callback that applies a mutation to a MutableRouteNode and returns the resulting node.

The callback receives a mutable copy of the current tree. It can modify children, arguments and extra data in place, then return the tree (or a new one) that should become the next state.

Implementation

typedef MutateNodeCallback = RouteNode Function(
  MutableRouteNode routeNode,
);