User constructor
User({
- required String userId,
- required String nickname,
- String? profileUrl,
- UserConnectionStatus connectionStatus = UserConnectionStatus.notAvailable,
- int? lastSeenAt,
- bool? isActive = true,
- List<
String> ? preferredLanguages, - String? friendDiscoveryKey,
- String? friendName,
- List<
String> ? discoveryKeys, - Map<
String, String> metaData = const {}, - bool requireAuth = false,
- String? sessionToken,
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.discoveryKeys,
this.metaData = const {},
this.requireAuth = false,
this.sessionToken,
});