PartyPresenceEvent constructor

PartyPresenceEvent({
  1. String? partyId,
  2. Iterable<UserPresence>? joins,
  3. Iterable<UserPresence>? leaves,
})

Implementation

factory PartyPresenceEvent({
  $core.String? partyId,
  $core.Iterable<UserPresence>? joins,
  $core.Iterable<UserPresence>? leaves,
}) {
  final _result = create();
  if (partyId != null) {
    _result.partyId = partyId;
  }
  if (joins != null) {
    _result.joins.addAll(joins);
  }
  if (leaves != null) {
    _result.leaves.addAll(leaves);
  }
  return _result;
}