loadPathsFromAssets function

Future<List<RouterPath>> loadPathsFromAssets (String path, { AssetBundle assetBundle })

Implementation

Future<List<RouterPath>> loadPathsFromAssets(String path,
    {AssetBundle assetBundle}) async {
  assetBundle ??= rootBundle;
  final yaml = await assetBundle.loadString(path);
  return loadPathsFromYamlSync(yaml);
}