Member class Null safety

Represents a member of a channel.



Member({MemberState state = 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, List<String>? discoveryKeys, Map<String, String> metaData = const {}, bool requireAuth = false})
Member.fromJson(Map<String, dynamic> json)


connectionStatus UserConnectionStatus?
This user's connection status
@JsonKey(defaultValue: UserConnectionStatus.notAvailable, unknownEnumValue: UserConnectionStatus.notAvailable), @JsonKey(defaultValue: UserConnectionStatus.notAvailable), read / write, inherited
discoveryKeys List<String>?
read / write, inherited
friendDiscoveryKey String?
read / write, inherited
friendName String?
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, override
isActive bool?
True if this user is activated. This property is changed by the Platform API
read / write, inherited
isBlockedByMe bool
True if current user has blocked this member, otherwise false
@JsonKey(defaultValue: false), read / write
isBlockingMe bool
True if this member has blocked current user, otherwise false
@JsonKey(defaultValue: false), read / write
isCurrentUser bool
read-only, inherited
isMuted bool
Muted state of this member in the channel
@JsonKey(defaultValue: false), read / write
lastSeenAt int?
The lastest time when the user became offline
read / write, inherited
metaData Map<String, String>
@JsonKey(defaultValue: const {}, name: 'metadata'), read / write, inherited
nickname String
User nickname
@JsonKey(defaultValue: ''), read / write, inherited
preferredLanguages List<String>?
User's preferred language. Used for translating messages.
read / write, inherited
profileUrl String?
Profile image url
read / write, inherited
requireAuth bool
@JsonKey(defaultValue: false, name: 'require_auth_for_profile_image'), read / write, inherited
role Role
Role of this member in the channel
@JsonKey(defaultValue: Role.none, unknownEnumValue: Role.none), read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
secureProfileUrl String?
Profile image url with auth
read-only, inherited
sessionToken String?
read / write, inherited
state MemberState
The state for invitation. The values of the property are invited and joined. The invited means that the user doesn't accept the invitation yet and the joined means that the user accepted the invitation manually or automatically
@JsonKey(defaultValue: MemberState.none, unknownEnumValue: MemberState.none), read / write
userId String
User ID. This has to be unique
read / write, inherited


copyWith(User other) → void
createMetaData(Map<String, String> metaDataMap) Future<Map<String, String>>
deleteAllMetaData() Future<void>
deleteMetaData(String key) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
updateMetaData(Map<String, String> metaDataMap) Future<Map<String, String>>


operator ==(Object other) bool
The equality operator. [...]