updateCustomerId method
Implementation
Future<int> updateCustomerId(String store_id, String customer_id) async {
Database? db = await DatabaseCreator.instance.database;
Map<String, dynamic> row = {
'customer_id': customer_id,
};
// do the update and get the number of affected rows
int updateCount = await db!
.update('cartTable', row, where: 'store_id = ?', whereArgs: [store_id]);
return updateCount;
}