load method

Future<Image> load(
  1. String fileName, [
  2. bool isFromDevice = false
])

Loads the specified image with fileName into the cache.

Implementation

Future<Image> load(String fileName, [bool isFromDevice = false]) {
  /* return (_assets[fileName] ??= _ImageAsset.future(_fetchToMemory(fileName)))
      .retrieveAsync(); */
  return (_assets[fileName] ??=
          _ImageAsset.future(_fetchToMemory(fileName)))
      .retrieveAsync();
}