update method
Implementation
Future update(id) async {
final db = await database;
return await db.update(
table,
toMap(),
where: 'id = ?',
whereArgs: [id],
);
}
Future update(id) async {
final db = await database;
return await db.update(
table,
toMap(),
where: 'id = ?',
whereArgs: [id],
);
}