delete method
Delete from local storage
Implementation
@override
/// Delete from local storage
Future<void> delete(String key) async {
try {
final db = await _initDB();
final transaction = db.transaction(storeName, 'readwrite');
final store = transaction.objectStore(storeName);
await store.delete(key);
await transaction.completed;
db.close();
} catch (e) {
debugPrint(e.toString());
//rethrow;
}
}