User constructor

User(
  1. {required String userId,
  2. required String nickname,
  3. String profileUrl = '',
  4. UserConnectionStatus connectionStatus = UserConnectionStatus.notAvailable,
  5. int? lastSeenAt,
  6. bool? isActive = true,
  7. List<String>? preferredLanguages,
  8. String friendDiscoveryKey = '',
  9. String friendName = '',
  10. Map<String, String> metaData = const {},
  11. bool requireAuth = false}
)

Implementation

User({
  required this.userId,
  required this.nickname,
  this.profileUrl = '',
  this.connectionStatus = UserConnectionStatus.notAvailable,
  this.lastSeenAt,
  this.isActive = true,
  this.preferredLanguages,
  this.friendDiscoveryKey = '',
  this.friendName = '',
  this.metaData = const {},
  this.requireAuth = false,
});