From 40e970a5dcba5d64b346ef8cb6d6ddddfe6930ea Mon Sep 17 00:00:00 2001 From: gelbeinhalb Date: Fri, 16 Jan 2026 13:37:00 +0100 Subject: [PATCH] re-add winner parameter --- lib/data/dto/match.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/data/dto/match.dart b/lib/data/dto/match.dart index c91dc92..6963b4f 100644 --- a/lib/data/dto/match.dart +++ b/lib/data/dto/match.dart @@ -12,6 +12,7 @@ class Match { final Group? group; final List? players; final String? notes; + Player? winner; Match({ String? id, @@ -21,12 +22,13 @@ class Match { this.group, this.players, this.notes, + this.winner, }) : id = id ?? const Uuid().v4(), createdAt = createdAt ?? clock.now(); @override String toString() { - return 'Match{id: $id, name: $name, game: $game, group: $group, players: $players, notes: $notes}'; + return 'Match{id: $id, name: $name, game: $game, group: $group, players: $players, notes: $notes, winner: $winner}'; } /// Creates a Match instance from a JSON object.