clearPreviewCache static method
Clears an on-disk cache of previously rendered PDF previews.
This is normally done automatically by methods such as fromFile,
fromURL, and fromAsset, unless they are run with the
clearPreviewCache
parameter set to false
.
Implementation
static Future<void> clearPreviewCache() async {
await _channel.invokeMethod('clearCacheDir');
}