cached property

bool cached

Implementation

bool get cached => (_cache != null);
void cached=(bool cached)

Implementation

set cached(bool cached) {
  if (cached) {
    _cache ??= {};
  } else {
    _cache = null;
  }
}