defaultAssetsAudioPlayerCache top-level property
Implementation
AssetsAudioPlayerCache defaultAssetsAudioPlayerCache = AssetsAudioPlayerCache(
cachePathProvider: (audio, key) async {
final directory = await getTemporaryDirectory();
final dirPath = directory.path;
return '$dirPath/$key';
},
audioKeyTransformer: (audio) async {
return removeHttpSpecialCharsFromStrings(audio.path);
},
);