put static method

void put(
  1. AnyDecorationCacheKey key,
  2. List<AnyContour> contours
)

Implementation

static void put(AnyDecorationCacheKey key, List<AnyContour> contours) {
  _contours.remove(key);
  _contours[key] = List<AnyContour>.unmodifiable(contours);

  while (_contours.length > limit) {
    _contours.remove(_contours.keys.first);
  }
}