addChildren method
Implementation
@visibleForTesting
Map<ModularKey, ModularRoute> addChildren(ModularRoute route) {
final Map<ModularKey, ModularRoute> map = {};
for (var child in route.children) {
child = child.copyWith(parent: route.name);
child = copy(route, child);
map.addAll(assembleRoute(child));
}
return map;
}