loadAsset method

Future<void> loadAsset(
  1. String asset
)

Load audio from app assets asset need to have full assets path

loadAssets('assets/voice.mp3')

Implementation

Future<void> loadAsset(String asset) async {
  await stop();
  await _player.setAsset(asset);
}