Skip to content

Instantly share code, notes, and snippets.

@Rahiche
Created December 11, 2018 13:56
Show Gist options
  • Save Rahiche/bf8f43ecf717782b8b5652400dc1f287 to your computer and use it in GitHub Desktop.
Save Rahiche/bf8f43ecf717782b8b5652400dc1f287 to your computer and use it in GitHub Desktop.
updateClient(Client newClient) async {
final db = await database;
var res = await db.update("Client", newClient.toMap(),
where: "id = ?", whereArgs: [newClient.id]);
return res;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment