cache.dart 319 B

123456789101112
  1. abstract class GlobalCacheHelper {
  2. static final _cache = <String, dynamic>{};
  3. static final keys = _ItemKeyConsts();
  4. static dynamic getItem(String key) => _cache[key];
  5. static void setItem(String key, dynamic val) => _cache[key] = val;
  6. }
  7. class _ItemKeyConsts {
  8. final followUpEditTemp = "followUpEditTemp";
  9. }