ChannelPresenceEvent constructor

const ChannelPresenceEvent({
  1. required String channelId,
  2. required String roomName,
  3. required String groupId,
  4. required Iterable<UserPresence> joins,
  5. required Iterable<UserPresence> leaves,
  6. String? userIdOne,
  7. 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;