deleteObjects static method

Future<void> deleteObjects(
  1. String key
)

Implementation

static Future<void> deleteObjects(String key) async {
  LazyBox lazyBox = Hive.lazyBox(cacheName);
  if (lazyBox.isOpen) {
    await lazyBox.delete(key);
  }
}