InMemoryAssetReader constructor
Create a new asset reader that contains sourceAssets
.
Any items in sourceAssets
which are Strings will be converted into
a List<int> of bytes.
May optionally define a rootPackage, which is required for some APIs.
Implementation
InMemoryAssetReader({Map<AssetId, dynamic>? sourceAssets, this.rootPackage})
: assets = _assetsAsBytes(sourceAssets);