Member class

Represents a GroupChannel member.

Inheritance
Annotations
  • @JsonSerializable()

Constructors

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})
Member.fromJson(Map<String, dynamic> json)
factory
Member.fromJsonWithChat(Chat chat, Map<String, dynamic> json)
factory

Properties

chat ↔ Chat
getter/setter pairinherited
connectionStatus UserConnectionStatus
The user connection status type.
getter/setter pairinherited
friendDiscoveryKey String
Represents friend discovery key.
getter/setter pairinherited
friendName String
The friend name.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setteroverride
isActive bool?
Whether the user is active.
getter/setter pairinherited
isBlockedByMe bool
Whether the Member is blocked by the SendbirdChat.currentUser.
getter/setter pair
isBlockingMe bool
Whether the Member is blocking the SendbirdChat.currentUser.
getter/setter pair
isCurrentUser bool
isCurrentUser
no setterinherited
isMuted bool
Whether the Member is muted or not.
getter/setter pair
lastSeenAt int?
The time this User has been last seen at. Zero if this User is online.
getter/setter pairinherited
memberState MemberState
The Member's invitation state.
getter/setter pair
metaData Map<String, String>
All meta data of the user.
getter/setter pairinherited
nickname String
The nickname of the user.
getter/setter pairinherited
preferredLanguages List<String>?
The preferred languages of the user.
getter/setter pairinherited
profileUrl String
The profile image URL.
getter/setter pairinherited
requireAuth bool
getter/setter pairinherited
restrictionInfo RestrictionInfo?
Restriction information for the current member. Only Nonnull if the member is muted.
getter/setter pair
role Role
The role of this member in the channel. Refer to Role.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secureProfileUrl String
The profile image URL with auth
no setterinherited
userId String
The ID of the user.
getter/setter pairinherited

Methods

copyWith(User other) → void
inherited
createMetaData(Map<String, String> metaDataMap) Future<Map<String, String>>
createMetaData
inherited
deleteAllMetaData() Future<void>
deleteAllMetaData
inherited
deleteMetaData(String key) Future<void>
deleteMetaData
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(Chat chat) → void
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited
updateMetaData(Map<String, String> metaDataMap) Future<Map<String, String>>
updateMetaData
inherited

Operators

operator ==(Object other) bool
The equality operator.
override