put static method

void put(
  1. AnyDecorationCacheKey key,
  2. AnyContour contour
)

Implementation

static void put(AnyDecorationCacheKey key, AnyContour contour) {
  _contours.remove(key);
  _contours[key] = contour;

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