Skip to content

Instantly share code, notes, and snippets.

@ashishrawat2911
Last active April 11, 2019 11:29
Show Gist options
  • Save ashishrawat2911/2ed7bcdf77d253d4940bcf0681afbc6d to your computer and use it in GitHub Desktop.
Save ashishrawat2911/2ed7bcdf77d253d4940bcf0681afbc6d to your computer and use it in GitHub Desktop.
addPersonToDatabase(Person person) async {
final db = await database;
var raw = await db.insert(
"Person",
person.toMap(),
conflictAlgorithm: ConflictAlgorithm.replace,
);
return raw;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment