replaceArguments method
Implementation
void replaceArguments(Object? arguments) {
final newRoute = route;
if (newRoute != null) {
final index = currentTreeBranch.indexOf(newRoute);
currentTreeBranch[index] = newRoute.copyWith(arguments: arguments);
}
}