clear method

void clear({
  1. bool resetMetrics = true,
})

Implementation

void clear({bool resetMetrics = true}) {
  for (final c in _cache.values) {
    c.picture.dispose();
  }
  _cache.clear();
  _currentMemory = 0;
  if (resetMetrics) resetStats();
}