ChannelPresenceEvent constructor
const
ChannelPresenceEvent({
- required String channelId,
- required String roomName,
- required String groupId,
- required Iterable<
UserPresence> joins, - required Iterable<
UserPresence> leaves, - String? userIdOne,
- String? userIdTwo,
Implementation
const factory ChannelPresenceEvent({
/// The channel identifier this event is for.
required String channelId,
/// Presences joining the channel as part of this event, if any.
required String roomName,
/// Presences leaving the channel as part of this event, if any.
required String groupId,
/// The name of the chat room, or an empty string if this message was not
/// sent through a chat room.
required Iterable<UserPresence> joins,
/// The ID of the group, or an empty string if this message was not sent
/// through a group channel.
required Iterable<UserPresence> leaves,
/// The ID of the first DM user, or an empty string if this message was not
/// sent through a DM chat.
String? userIdOne,
/// The ID of the second DM user, or an empty string if this message was not
/// sent through a DM chat.
String? userIdTwo,
}) = _ChannelPresenceEvent;