Skip to content

Instantly share code, notes, and snippets.

@Rahiche
Created December 11, 2018 13:56
Show Gist options
  • Save Rahiche/afc84d8f76ce749d61deb3100de4494b to your computer and use it in GitHub Desktop.
Save Rahiche/afc84d8f76ce749d61deb3100de4494b to your computer and use it in GitHub Desktop.
getBlockedClients() async {
final db = await database;
var res = await db.rawQuery("SELECT * FROM Client WHERE blocked=1");
List<Client> list =
res.isNotEmpty ? res.toList().map((c) => Client.fromMap(c)) : null;
return list;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment