load method

Future<Uri> load(
  1. String fileName
)

Loads a single fileName to the cache.

Also returns a Future to access that file.

Implementation

Future<Uri> load(String fileName) async {
  if (!loadedFiles.containsKey(fileName)) {
    loadedFiles[fileName] = await fetchToMemory(fileName);
  }
  return loadedFiles[fileName]!;
}