Member constructor

Member({
  1. MemberState state = MemberState.none,
  2. bool isBlockedByMe = false,
  3. bool isBlockingMe = false,
  4. bool isMuted = false,
  5. Role role = Role.none,
  6. required String userId,
  7. required String nickname,
  8. String? profileUrl,
  9. UserConnectionStatus connectionStatus = UserConnectionStatus.notAvailable,
  10. int? lastSeenAt,
  11. List<String>? preferredLanguages,
  12. String? friendDiscoveryKey,
  13. String? friendName,
  14. List<String>? discoveryKeys,
  15. Map<String, String> metaData = const {},
  16. bool requireAuth = false,
})

Implementation

Member({
  this.state = MemberState.none,
  this.isBlockedByMe = false,
  this.isBlockingMe = false,
  this.isMuted = false,
  this.role = Role.none,
  required String userId,
  required String nickname,
  String? profileUrl,
  UserConnectionStatus connectionStatus = UserConnectionStatus.notAvailable,
  int? lastSeenAt,
  List<String>? preferredLanguages,
  String? friendDiscoveryKey,
  String? friendName,
  List<String>? discoveryKeys,
  Map<String, String> metaData = const {},
  bool requireAuth = false,
}) : super(
        userId: userId,
        nickname: nickname,
        profileUrl: profileUrl,
        connectionStatus: connectionStatus,
        lastSeenAt: lastSeenAt,
        preferredLanguages: preferredLanguages,
        friendDiscoveryKey: friendDiscoveryKey,
        friendName: friendName,
        discoveryKeys: discoveryKeys,
        metaData: metaData,
        requireAuth: requireAuth,
      );