New profile constructor

This commit is contained in:
SomnusVeritas
2023-10-20 22:44:04 +02:00
parent 03de5b4bf7
commit a5269f077b

View File

@@ -5,4 +5,6 @@ class Profile {
Profile.fromMap(Map<String, dynamic> map) Profile.fromMap(Map<String, dynamic> map)
: username = map['username'], : username = map['username'],
points = map['points'] ?? 0; points = map['points'] ?? 0;
Profile(this.username, this.points);
} }