Refactor display to separate widget
This commit is contained in:
@@ -93,6 +93,11 @@ last_updated = excluded.last_updated
|
||||
);
|
||||
return games.map((e) => Game.fromMap(e)).toList();
|
||||
}
|
||||
|
||||
static Future<void> delete(Game game) async {
|
||||
final db = DB.db;
|
||||
await db.rawDelete('DELETE FROM games WHERE name = ?', [game.name]);
|
||||
}
|
||||
}
|
||||
|
||||
//CREATE TABLE IF NOT EXISTS games (
|
||||
|
||||
Reference in New Issue
Block a user