read<T extends Object> method
Looks up the value for the provided key.
Defaults to null if no value exists for the provided key.
Implementation
T? read<T extends Object>({required String key}) {
final value = _cache[key];
if (value is T) return value;
return null;
}