Last active
April 11, 2019 11:29
-
-
Save ashishrawat2911/2ed7bcdf77d253d4940bcf0681afbc6d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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