resolve method

Returns a UriAudioSource resolving directly to the cache file if it exists, otherwise returns this. This can be

Implementation

Future<IndexedAudioSource> resolve() async {
  final file = await cacheFile;
  return await file.exists() ? AudioSource.uri(Uri.file(file.path)) : this;
}