Sender constructor

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

Implementation

Sender({
  this.isBlockedByMe = 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,
      );