registerAssetLicense function
- List<
String> packages, - String assetKey, {
- AssetBundle? bundle,
Adds assetKey's text under packages to LicenseRegistry; it is read only when a page lists licences.
Implementation
void registerAssetLicense(
List<String> packages,
String assetKey, {
AssetBundle? bundle,
}) {
LicenseRegistry.addLicense(
() => assetLicense(bundle ?? rootBundle, packages, assetKey),
);
}