update<T> method
Implementation
void update<T>(
String key,
T Function(T current)? update, {
bool listen = true,
}) {
if (!_cache.containsKey(key)) {
return;
}
_cache.update(key, (current) => update?.call(current as T));
if (listen) {
_notifyListeners();
}
}