-
-
Save Rahiche/5d1fe0e9ea30ae0823df7b83bf74f593 to your computer and use it in GitHub Desktop.
This file contains 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
getClient(int id) async { | |
final db = await database; | |
var res =await db.query("Client", where: "id = ?", whereArgs: [id]); | |
return res.isNotEmpty ? Client.fromMap(res.first) : Null ; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment