update method
Implementation
Future<int> update(int id, String tableName, T item, ToMap<T> toMap) async {
final data = toMap(item)..remove('id');
return await database!
.update(tableName, data, where: 'id = ?', whereArgs: [id]);
}
Future<int> update(int id, String tableName, T item, ToMap<T> toMap) async {
final data = toMap(item)..remove('id');
return await database!
.update(tableName, data, where: 'id = ?', whereArgs: [id]);
}