void set caching(bool val) { if (val == _caching) return; _caching = val; if (!_caching) { lastValues.length = 0; } }