assetLicense function

Stream<LicenseEntry> assetLicense(
  1. AssetBundle bundle,
  2. List<String> packages,
  3. String assetKey
)

One licence entry for packages, its text read from bundle at assetKey.

Implementation

Stream<LicenseEntry> assetLicense(
  AssetBundle bundle,
  List<String> packages,
  String assetKey,
) async* {
  yield LicenseEntryWithLineBreaks(packages, await bundle.loadString(assetKey));
}