ChannelPresenceEvent constructor

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