clear method
Clears the cache for the file fileName.
Does nothing if the file was not on cache. Note: web relies on browser cache which is handled entirely by the browser.
Implementation
Future<void> clear(Uri fileName) async {
final uri = loadedFiles.remove(fileName);
if (uri != null && !kIsWeb) {
await File(uri.toFilePath()).delete();
}
}