clearTemporaryFiles method

  1. @override
Future<bool?> clearTemporaryFiles()
override

Asks the underlying platform to remove any temporary files created by this plugin.

This typically relates to cached files that are stored in the cache directory of each platform and it isn't required to invoke this as the system should take care of it whenever needed. However, this will force the cleanup if you want to manage those on your own.

This method is only available on mobile platforms (Android & iOS).

Returns true if the files were removed with success, false otherwise.

Implementation

@override
Future<bool?> clearTemporaryFiles() async =>
    _channel.invokeMethod<bool>('clear');