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<DataTexture?> fromAsset(String asset, {String? package}) async{
_init();
ThreeFile? tf = await _loader.fromAsset(asset, package: package);
return _parse(super.parse(_parseData(tf?.data)));
}