clear method

  1. @override
Future<void> clear()
override

Clears all data from the cache.

Throws a CacheException if there is an error clearing the cache.

Implementation

@override
Future<void> clear() async {
  if (!_isInitialized) await init();
  await _box.clear();
}