core/chart_cache library
Classes
- ChartObjectCacheStats
- Shared hit/miss/eviction snapshot for lightweight render-object caches.
- ChartRenderCacheStats
- Combined diagnostics for the global render-object caches.
- ColorCache
- Parses and caches Color objects from string representations.
- PaintCache
- PathCache
-
Caches pre-computed ui.Path objects to avoid rebuilding them on every
paint()call when the underlying data has not changed. - TextPainterCache
- Caches TextPainter layout results with bounded LRU eviction.
Properties
- chartRenderCacheStats → ChartRenderCacheStats
-
no setter
- colorCache → ColorCache
-
final
- paintCache → PaintCache
-
final
- pathCache → PathCache
-
final
- textPainterCache → TextPainterCache
-
final
Functions
-
clearChartRenderCaches(
{bool resetMetrics = true}) → void -
resetChartRenderCacheStats(
) → void -
resolveColor(
String? raw, Color fallback) → Color - Resolve a nullable color string with a fallback.