Implemented uuid for all dtos

This commit is contained in:
2025-11-18 20:07:53 +01:00
parent fde5344244
commit 282841ecf1
5 changed files with 14 additions and 8 deletions

View File

@@ -1,8 +1,10 @@
import 'package:uuid/uuid.dart';
class Player {
final String id;
final String name;
Player({required this.id, required this.name});
Player({String? id, required this.name}) : id = id ?? const Uuid().v4();
@override
String toString() {