-
-
Save Rahiche/ee27409b24a56178d463b91a303c7edf 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
getAllClients() async { | |
final db = await database; | |
var res = await db.query("Client"); | |
List<Client> list = | |
res.isNotEmpty ? res.map((c) => Client.fromMap(c)).toList() : []; | |
return list; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment