ChannelPresenceEvent class

Annotations
  • @freezed

Constructors

ChannelPresenceEvent({required String channelId, required String roomName, required String groupId, required Iterable<UserPresence> joins, required Iterable<UserPresence> leaves, String? userIdOne, String? userIdTwo})
const
factory
ChannelPresenceEvent.fromDto(ChannelPresenceEvent dto)
factory

Properties

channelId String
The channel identifier this event is for.
no setterinherited
copyWith → $ChannelPresenceEventCopyWith<ChannelPresenceEvent>
no setterinherited
groupId String
Presences leaving the channel as part of this event, if any.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
joins Iterable<UserPresence>
The name of the chat room, or an empty string if this message was not sent through a chat room.
no setterinherited
leaves Iterable<UserPresence>
The ID of the group, or an empty string if this message was not sent through a group channel.
no setterinherited
roomName String
Presences joining the channel as part of this event, if any.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userIdOne String?
The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
no setterinherited
userIdTwo String?
The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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