deleteNotificationInDB method

Future<bool> deleteNotificationInDB (
  1. NotificationModel noteToDelete
)

Deletes notification from database

Implementation

Future<bool> deleteNotificationInDB(NotificationModel noteToDelete) async {
  final db = await database;
  final res = await db.delete('Notifications',
      where: '_id = ?', whereArgs: [noteToDelete.id]);
  print('Notification deleted');
  return true;
}