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<AudioSource?> fromAsset(String asset, {String? package}) async{
asset = package != null?'packages/$package/${path+asset}':path+asset;
return await SoLoud.instance.loadAsset(asset);
}