assembleRoute method

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

Implementation

@visibleForTesting
Map<ModularKey, ModularRoute> assembleRoute(ModularRoute route) {
  final Map<ModularKey, ModularRoute> map = {};

  if (route.context == null) {
    map[route.key] = route;
    map.addAll(addChildren(route));
  } else {
    map.addAll(addModule(route));
  }

  return map;
}