fromAsset static method

Future<List<ChangelogEntry>> fromAsset(
  1. String assetPath, {
  2. AssetBundle? bundle,
})

Convenience: loads and parses assetPath from bundle (defaults to the ambient asset bundle).

Implementation

static Future<List<ChangelogEntry>> fromAsset(
  String assetPath, {
  AssetBundle? bundle,
}) async {
  final source = await (bundle ?? rootBundle).loadString(assetPath);
  return parse(source);
}