void clearFrames(List<String> framePaths) { for (final framePath in framePaths) { final image = _cache.remove(framePath); image?.dispose(); } }