updateNotificationInDB method
- NotificationModel updatedNotification
Updates notification in database
Implementation
updateNotificationInDB(NotificationModel updatedNotification) async {
final db = await database;
await db.update('Notifications', updatedNotification.toMap(),
where: '_id = ?', whereArgs: [updatedNotification.id]);
}