putWidget static method

void putWidget(
  1. MarkerConfig config,
  2. Widget widget
)

Cache a widget for the given configuration

Implementation

static void putWidget(MarkerConfig config, Widget widget) {
  final key = CacheKey.forWidget(config);
  _ensureCapacity();
  _widgetCache[key] = widget;
  _updateAccessOrder(key);
}