loadPathsFromAssets function

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

Implementation

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