Member constructor

Member(
  1. {MemberState memberState = 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. Map<String, String> metaData = const {},
  15. bool requireAuth = false}
)

Implementation

Member({
  this.memberState = 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 = '',
  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,
        metaData: metaData,
        requireAuth: requireAuth,
      );