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