SpritefusionAssetReader constructor
SpritefusionAssetReader({
- required String asset,
Implementation
SpritefusionAssetReader({
required this.asset,
}) {
var assetKey = asset.startsWith(_assetPrefixKey)
? asset.substring(_assetPrefixKey.length)
: asset;
basePath = assetKey.replaceAll(assetKey.split('/').last, '');
_path = '$_assetPrefixKey$assetKey';
}