saveAndUpdate method
Implementation
Future<E?> saveAndUpdate(E? Function(E? oldValue) handle, [String key = 'default', E? defaultValue]) async {
final oldV = await getValue(key, defaultValue: defaultValue);
final newV = handle.call(oldV);
if (newV != null) {
await setValue(key, newV);
}
return newV;
}