UserData constructor

UserData({
  1. required String userId,
  2. required String email,
  3. required String profilePic,
  4. required String name,
  5. required List<String> currentEvents,
  6. required List<String> pastEvents,
  7. required int points,
  8. required int grade,
  9. required Map<String, int> pastPoints,
  10. required List<String> joinedGroups,
  11. required Map<String, List<String>> pendingPurchasedItems,
  12. 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;
}