cleanup method

Future cleanup()

Call this method to cleanup any temporary files that have been created by the image provider.

After this method completes any file paths returned from videoFile or other methods will no longer be valid. Only call this method when you no longer depend on those files. Calling this at program startup is safe, or at a point when you have finished using all returned file paths.

Implementation

Future cleanup() async {
  if (!_initWorked) {
    throw LocalImageProviderNotInitializedException();
  }
  return LocalImageProviderPlatform.instance.cleanup();
}