loadWebLicenseInventory function

Future<WebLicenseInventory> loadWebLicenseInventory(
  1. dynamic bundle
)

Reads the inventory from bundle; on the web this is a fetch below the app's assets/.

Implementation

Future<WebLicenseInventory> loadWebLicenseInventory(AssetBundle bundle) async {
  final Object? json = jsonDecode(
    await bundle.loadString(webLicenseIndexKey, cache: false),
  );
  return WebLicenseInventory.fromJson(json! as Map<String, dynamic>);
}