loadPathsFromYamlSync function

List<RouterPath> loadPathsFromYamlSync (String yaml)

Implementation

List<RouterPath> loadPathsFromYamlSync(String yaml) {
  final YamlMap routerMap = loadYaml(yaml);
  final paths = <RouterPath>[];

  routerMap.keys.forEach((dynamic it) {
    paths.add(RouterPath.fromYaml(path: it, config: routerMap[it]));
  });

  return paths;
}