PeamanUser constructor

PeamanUser({
  1. String? uid,
  2. String? name,
  3. String? userName,
  4. String? email,
  5. String? photo,
  6. String? phone,
  7. String? country,
  8. String? bio,
  9. PeamanGender gender = PeamanGender.unknown,
  10. int? dob,
  11. String? profession,
  12. int feeds = 0,
  13. int photos = 0,
  14. int videos = 0,
  15. PeamanOnlineStatus onlineStatus = PeamanOnlineStatus.away,
  16. int? lastOnlineAt,
  17. List<String> searchKeys = const [],
  18. int followers = 0,
  19. int following = 0,
  20. int reactionsReceivedFromFeeds = 0,
  21. int commentsReceivedFromFeeds = 0,
  22. int repliesReceivedFromFeeds = 0,
  23. int sharesReceivedFromFeeds = 0,
  24. int viewsReceivedFromFeeds = 0,
  25. bool admin = false,
  26. bool editor = false,
  27. bool tester = false,
  28. int onboardingStep = 0,
  29. bool onboardingCompleted = false,
  30. double? latitude,
  31. double? longitude,
  32. int? createdAt,
  33. bool visibility = true,
  34. Map<String, dynamic> extraData = const {},
})

Implementation

PeamanUser({
  this.uid,
  this.name,
  this.userName,
  this.email,
  this.photo,
  this.phone,
  this.country,
  this.bio,
  this.gender = PeamanGender.unknown,
  this.dob,
  this.profession,
  this.feeds = 0,
  this.photos = 0,
  this.videos = 0,
  this.onlineStatus = PeamanOnlineStatus.away,
  this.lastOnlineAt,
  this.searchKeys = const [],
  this.followers = 0,
  this.following = 0,
  this.reactionsReceivedFromFeeds = 0,
  this.commentsReceivedFromFeeds = 0,
  this.repliesReceivedFromFeeds = 0,
  this.sharesReceivedFromFeeds = 0,
  this.viewsReceivedFromFeeds = 0,
  this.admin = false,
  this.editor = false,
  this.tester = false,
  this.onboardingStep = 0,
  this.onboardingCompleted = false,
  this.latitude,
  this.longitude,
  this.createdAt,
  this.visibility = true,
  this.extraData = const {},
});