put method

Image put(
  1. Object key,
  2. Image master
)

Stores master under key (the cache takes ownership of it) and returns a clone for the caller to use and dispose. The master stays cached until evicted.

Implementation

ui.Image put(Object key, ui.Image master) => _cache.putAndClone(key, master);