Member class Null safety
Represents a member of a channel.
- Inheritance
- Annotations
Constructors
-
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) -
factory
Properties
- connectionStatus ↔ UserConnectionStatus
-
This user's connection status
read / writeinherited
-
discoveryKeys
↔ List<
String> ? -
read / writeinherited
- friendDiscoveryKey ↔ String?
-
read / writeinherited
- friendName ↔ String?
-
read / writeinherited
- hashCode → int
-
The hash code for this object.
read-onlyoverride
- isActive ↔ bool?
-
True if this user is activated. This property is changed by the
Platform API
read / writeinherited
- isBlockedByMe ↔ bool
-
True if current user has blocked this member, otherwise false
read / write
- isBlockingMe ↔ bool
-
True if this member has blocked current user, otherwise false
read / write
- isCurrentUser → bool
-
read-onlyinherited
- isMuted ↔ bool
-
Muted state of this member in the channel
read / write
- lastSeenAt ↔ int?
-
The lastest time when the user became offline
read / writeinherited
-
metaData
↔ Map<
String, String> -
read / writeinherited
- nickname ↔ String
-
User nickname
read / writeinherited
-
preferredLanguages
↔ List<
String> ? -
User's preferred language. Used for translating messages.
read / writeinherited
- profileUrl ↔ String?
-
Profile image url
read / writeinherited
- requireAuth ↔ bool
-
read / writeinherited
- restrictionInfo ↔ RestrictionInfo?
-
Restriction information
read / write
- role ↔ Role
-
Role of this member in the channel
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- secureProfileUrl → String?
-
Profile image url with auth
read-onlyinherited
- sessionToken ↔ String?
-
read / writeinherited
- state ↔ MemberState
-
The state for invitation. The values of the property are
invitedandjoined. Theinvitedmeans that the user doesn't accept the invitation yet and thejoinedmeans that the user accepted the invitation manually or automaticallyread / write - userId ↔ String
-
User ID. This has to be unique
read / writeinherited
Methods
-
copyWith(
User other) → void -
inherited
-
createMetaData(
Map< String, String> metaDataMap) → Future<Map< String, String> > -
inherited
-
deleteAllMetaData(
) → Future< void> -
inherited
-
deleteMetaData(
String key) → Future< void> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
updateMetaData(
Map< String, String> metaDataMap) → Future<Map< String, String> > -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override