unloadAll method

Future<void> unloadAll()

Unloads all previously preloaded HAC and OGG files.

Unloading all files frees up resources used by the preloaded files. Later calls to play, playHAC, and playOGG for previously preloaded files may have higher latency.

Returns a Future that completes when all preloaded files have been unloaded.

Implementation

Future<void> unloadAll() {
  return HapticlabsPlayerPlatform.instance.unloadAll();
}