addChildren method

  1. @visibleForTesting
Map<ModularKey, ModularRoute> addChildren(
  1. ModularRoute route
)
inherited

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;
}