set notes default
This commit is contained in:
@@ -24,10 +24,11 @@ class Match {
|
|||||||
required this.game,
|
required this.game,
|
||||||
this.group,
|
this.group,
|
||||||
this.players = const [],
|
this.players = const [],
|
||||||
required this.notes,
|
String? notes,
|
||||||
this.winner,
|
this.winner,
|
||||||
}) : id = id ?? const Uuid().v4(),
|
}) : id = id ?? const Uuid().v4(),
|
||||||
createdAt = createdAt ?? clock.now();
|
createdAt = createdAt ?? clock.now(),
|
||||||
|
notes = notes ?? '';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() {
|
String toString() {
|
||||||
|
|||||||
Reference in New Issue
Block a user