unload method

Future<void> unload(
  1. String path
)

Unloads a previously preloaded HAC file from the specified path.

Unloading a HAC file frees up resources used by the preloaded file. Later calls to play and playHAC for the same file may have higher latency.

path - The file path to the .hac file. Can be an absolute path (starting with /) or a relative path (not starting with /) from the app's assets root.

Returns a Future that completes when the HAC file has been unloaded.

Implementation

Future<void> unload(String path) {
  return HapticlabsPlayerPlatform.instance.unload(path);
}