PeamanUser constructor
PeamanUser({
- String? uid,
- String? name,
- String? userName,
- String? email,
- String? photo,
- String? phone,
- String? country,
- String? bio,
- PeamanGender gender = PeamanGender.unknown,
- int? dob,
- String? profession,
- int feeds = 0,
- int photos = 0,
- int videos = 0,
- PeamanOnlineStatus onlineStatus = PeamanOnlineStatus.away,
- int? lastOnlineAt,
- List<
String> searchKeys = const [], - int followers = 0,
- int following = 0,
- int reactionsReceivedFromFeeds = 0,
- int commentsReceivedFromFeeds = 0,
- int repliesReceivedFromFeeds = 0,
- int viewsReceivedFromFeeds = 0,
- bool admin = false,
- bool editor = false,
- bool tester = false,
- int onboardingStep = 0,
- bool onboardingCompleted = false,
- double? latitude,
- double? longitude,
- int? createdAt,
- bool visibility = true,
- 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 {},
});