Member class
Represents a GroupChannel
member.
- Inheritance
- Annotations
-
- @JsonSerializable(createToJson: false)
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
-
read / writeinherited
- connectionStatus ↔ UserConnectionStatus
-
The user connection status type.
read / writeinherited
- friendDiscoveryKey ↔ String
-
Represents friend discovery key.
read / writeinherited
- friendName ↔ String
-
The friend name.
read / writeinherited
- hashCode → int
-
The hash code for this object.
read-onlyoverride
- isActive ↔ bool?
-
Whether the user is active.
read / writeinherited
- isBlockedByMe ↔ bool
-
Whether the Member is blocked by the SendbirdChat.currentUser.
read / write
- isBlockingMe ↔ bool
-
Whether the Member is blocking the SendbirdChat.currentUser.
read / write
- isCurrentUser → bool
-
isCurrentUser
read-onlyinherited
- isMuted ↔ bool
-
Whether the Member is muted or not.
read / write
- lastSeenAt ↔ int?
-
The time this User has been last seen at. Zero if this User is online.
read / writeinherited
- memberState ↔ MemberState
-
The Member's invitation state.
read / write
-
metaData
↔ Map<
String, String> -
All meta data of the user.
read / writeinherited
- nickname ↔ String
-
The nickname of the user.
read / writeinherited
-
preferredLanguages
↔ List<
String> ? -
The preferred languages of the user.
read / writeinherited
- profileUrl ↔ String
-
The profile image URL.
read / writeinherited
- requireAuth ↔ bool
-
read / writeinherited
- restrictionInfo ↔ RestrictionInfo?
-
Restriction information for the current member.
Only
Nonnull
if the member is muted.read / write - role ↔ Role
-
The role of this member in the channel. Refer to Role.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- secureProfileUrl → String
-
The profile image URL with auth
read-onlyinherited
- userId ↔ String
-
The ID of the user.
read / writeinherited
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> -
inherited
-
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