From 866f79998c801fb5b803b407978a537bf796995b Mon Sep 17 00:00:00 2001 From: gelbeinhalb Date: Wed, 4 Mar 2026 13:35:04 +0100 Subject: [PATCH] set description default --- lib/data/dto/game.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/data/dto/game.dart b/lib/data/dto/game.dart index 437d98e..2eeee1e 100644 --- a/lib/data/dto/game.dart +++ b/lib/data/dto/game.dart @@ -16,11 +16,12 @@ class Game { DateTime? createdAt, required this.name, required this.ruleset, - required this.description, + String? description, required this.color, required this.icon, }) : id = id ?? const Uuid().v4(), - createdAt = createdAt ?? clock.now(); + createdAt = createdAt ?? clock.now(), + description = description ?? ''; @override String toString() {