put method

  1. @override
Future<void> put(
  1. String key,
  2. V val, [
  3. Object? transaction
])

Implementation

@override
Future<void> put(String key, V val, [Object? transaction]) async {
  if (val == null) {
    return delete(key);
  }
  final box = await _getBox();
  await box.put(_toHiveKey(key), val);
  await _flushOrMark();
}