From a5269f077be2916ad5e54d67f915d8acd1a964a3 Mon Sep 17 00:00:00 2001 From: SomnusVeritas Date: Fri, 20 Oct 2023 22:44:04 +0200 Subject: [PATCH] New profile constructor --- lib/models/profile.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/models/profile.dart b/lib/models/profile.dart index 5812c6b..4998994 100644 --- a/lib/models/profile.dart +++ b/lib/models/profile.dart @@ -5,4 +5,6 @@ class Profile { Profile.fromMap(Map map) : username = map['username'], points = map['points'] ?? 0; + + Profile(this.username, this.points); }