Member constructor
Member(- {MemberState memberState = MemberState.none,
- bool isBlockedByMe = false,
- bool isBlockingMe = false,
- bool isMuted = false,
- Role 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}
)
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,
);