UserData constructor
UserData({
- required String userId,
- required String email,
- required String profilePic,
- required String name,
- required List<
String> currentEvents, - required List<
String> pastEvents, - required int points,
- required int grade,
- required Map<
String, int> pastPoints, - required List<
String> joinedGroups, - required Map<
String, List< pendingPurchasedItems,String> > - required int spendablePoints,
Implementation
UserData({
required String userId,
required String email,
required String profilePic,
required String name,
required List<String> currentEvents,
required List<String> pastEvents,
required int points,
required int grade,
required Map<String, int> pastPoints,
required List<String> joinedGroups,
required Map<String, List<String>> pendingPurchasedItems,
required int spendablePoints,
}) {
_userId = userId;
_email = email;
_profilePic = profilePic;
_name = name;
_currentEvents = currentEvents;
_pastEvents = pastEvents;
_points = points;
_grade = grade;
_pastPoints = pastPoints;
_joinedGroups = joinedGroups;
_pendingPurchasedItems = pendingPurchasedItems;
_spendablePoints = spendablePoints;
}