ChannelPresenceEvent constructor
ChannelPresenceEvent({
- String? channelId,
- Iterable<
UserPresence> ? joins, - Iterable<
UserPresence> ? leaves, - String? roomName,
- String? groupId,
- String? userIdOne,
- String? userIdTwo,
Implementation
factory ChannelPresenceEvent({
$core.String? channelId,
$core.Iterable<UserPresence>? joins,
$core.Iterable<UserPresence>? leaves,
$core.String? roomName,
$core.String? groupId,
$core.String? userIdOne,
$core.String? userIdTwo,
}) {
final _result = create();
if (channelId != null) {
_result.channelId = channelId;
}
if (joins != null) {
_result.joins.addAll(joins);
}
if (leaves != null) {
_result.leaves.addAll(leaves);
}
if (roomName != null) {
_result.roomName = roomName;
}
if (groupId != null) {
_result.groupId = groupId;
}
if (userIdOne != null) {
_result.userIdOne = userIdOne;
}
if (userIdTwo != null) {
_result.userIdTwo = userIdTwo;
}
return _result;
}