resetProfile function
Implementation
void resetProfile() {
UserData userData = UserData();
userData.shiny = true;
userData.isRegistered = false;
userData.id = "";
userData.username = "AnĂ³nimo";
userData.email = "AnĂ³nimo";
userData.avatar = "/avatars/humans/1.webp";
userData.elo = 0;
userData.rank = 0;
userData.achievementRate = 0;
userData.winRate = 0;
userData.achievements = List.empty(growable: true);
userData.boardTypeN = woodN;
userData.boardTypeB = woodB;
userData.boardType = "wood";
userData.lightPieces = "/pieces/arab";
userData.darkPieces = "/pieces/arab";
userData.savedGames = List.empty(growable: true);
userData.playedGames = List.empty(growable: true);
userData.games = "";
userData.token = "";
}