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 {
  final db = await database;
  await db.delete('cache');
}