fromAsset method
asset
- path of the file to be loaded
package
- if the file is from another flutter package add the name of the package here
Implementation
@override
Future<CompressedTexture?> fromAsset(String asset, {String? package}) async{
_init();
ThreeFile? tf = await _loader.fromAsset(asset, package: package);
return _parse(tf?.data);
}