lookup method

PlatformIcon? lookup(
  1. Object key,
  2. Size size,
  3. double pixelRatio
)

The cached icon, if any, which becomes the most recently used.

Implementation

PlatformIcon? lookup(Object key, Size size, double pixelRatio) {
  final cacheKey = (key, size, pixelRatio);
  final icon = _icons.remove(cacheKey);
  if (icon != null) _icons[cacheKey] = icon;
  return icon;
}