set<TType> method
Implementation
Future<void> set<TType>(String key, TType? value) async {
if (value == null) {
// FIX: await the async delete call
await _hiveBox?.delete(key);
} else {
final encodedValue = _encodeValue(value);
// FIX: await the async put call so callers can rely on data being persisted
await _hiveBox?.put(key, encodedValue);
}
}