From f04d57382ccc0afe97078be993af1a5071dc377d Mon Sep 17 00:00:00 2001 From: gelbeinhalb Date: Wed, 4 Mar 2026 13:35:43 +0100 Subject: [PATCH] set notes default --- lib/data/dto/match.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/data/dto/match.dart b/lib/data/dto/match.dart index 31f45fc..3976d36 100644 --- a/lib/data/dto/match.dart +++ b/lib/data/dto/match.dart @@ -24,10 +24,11 @@ class Match { required this.game, this.group, this.players = const [], - required this.notes, + String? notes, this.winner, }) : id = id ?? const Uuid().v4(), - createdAt = createdAt ?? clock.now(); + createdAt = createdAt ?? clock.now(), + notes = notes ?? ''; @override String toString() {