updateLibro method
- Libro libro
Aggiorna i dati di un libro
esistente nella tabella 'libri'.
Implementation
Future<void> updateLibro(Libro libro) async {
final db = await database;
await db.update(
'libri',
libro.toMap(),
where: 'isbn = ?',
whereArgs: [libro.isbn],
);
}