color is now a required game parameter

This commit is contained in:
gelbeinhalb
2026-01-23 11:08:11 +01:00
parent 6006c6d3f7
commit 55f5aac4e2
11 changed files with 51 additions and 61 deletions

View File

@@ -7,7 +7,7 @@ class Game {
final String name;
final String? ruleset;
final String? description;
final int? color;
final String color;
final String? icon;
Game({
@@ -16,7 +16,7 @@ class Game {
required this.name,
this.ruleset,
this.description,
this.color,
required this.color,
this.icon,
}) : id = id ?? const Uuid().v4(),
createdAt = createdAt ?? clock.now();