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 = '',
- Map<String, String> metaData = const {},
- 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,
});