User constructor

User({
  1. String email = '',
  2. String userID = '',
  3. String profilePictureURL = '',
  4. String firstName = '',
  5. String? phoneNumber = '',
  6. String lastName = '',
  7. bool active = false,
  8. dynamic lastOnlineTimestamp,
  9. dynamic settings,
  10. String fcmToken = '',
  11. List photos = const [],
})

Implementation

User({
  this.email = '',
  this.userID = '',
  this.profilePictureURL = '',
  this.firstName = '',
  this.phoneNumber = '',
  this.lastName = '',
  this.active = false,
  lastOnlineTimestamp,
  settings,
  this.fcmToken = '',
  this.photos = const [],
})  : this.lastOnlineTimestamp = lastOnlineTimestamp ?? DateTime.now(),
      this.settings = settings ?? UserSettings(),
      this.appIdentifier = 'Flutter instagram';