SfuEvent constructor

SfuEvent({
  1. SubscriberOffer? subscriberOffer,
  2. PublisherAnswer? publisherAnswer,
  3. ConnectionQualityChanged? connectionQualityChanged,
  4. AudioLevelChanged? audioLevelChanged,
  5. ICETrickle? iceTrickle,
  6. ChangePublishQuality? changePublishQuality,
  7. ParticipantJoined? participantJoined,
  8. ParticipantLeft? participantLeft,
  9. DominantSpeakerChanged? dominantSpeakerChanged,
  10. JoinResponse? joinResponse,
  11. HealthCheckResponse? healthCheckResponse,
  12. TrackPublished? trackPublished,
  13. TrackUnpublished? trackUnpublished,
  14. Error? error,
  15. CallGrantsUpdated? callGrantsUpdated,
  16. GoAway? goAway,
  17. ICERestart? iceRestart,
  18. PinsChanged? pinsUpdated,
  19. CallEnded? callEnded,
  20. ParticipantUpdated? participantUpdated,
})

Implementation

factory SfuEvent({
  SubscriberOffer? subscriberOffer,
  PublisherAnswer? publisherAnswer,
  ConnectionQualityChanged? connectionQualityChanged,
  AudioLevelChanged? audioLevelChanged,
  $0.ICETrickle? iceTrickle,
  ChangePublishQuality? changePublishQuality,
  ParticipantJoined? participantJoined,
  ParticipantLeft? participantLeft,
  DominantSpeakerChanged? dominantSpeakerChanged,
  JoinResponse? joinResponse,
  HealthCheckResponse? healthCheckResponse,
  TrackPublished? trackPublished,
  TrackUnpublished? trackUnpublished,
  Error? error,
  CallGrantsUpdated? callGrantsUpdated,
  GoAway? goAway,
  ICERestart? iceRestart,
  PinsChanged? pinsUpdated,
  CallEnded? callEnded,
  ParticipantUpdated? participantUpdated,
}) {
  final _result = create();
  if (subscriberOffer != null) {
    _result.subscriberOffer = subscriberOffer;
  }
  if (publisherAnswer != null) {
    _result.publisherAnswer = publisherAnswer;
  }
  if (connectionQualityChanged != null) {
    _result.connectionQualityChanged = connectionQualityChanged;
  }
  if (audioLevelChanged != null) {
    _result.audioLevelChanged = audioLevelChanged;
  }
  if (iceTrickle != null) {
    _result.iceTrickle = iceTrickle;
  }
  if (changePublishQuality != null) {
    _result.changePublishQuality = changePublishQuality;
  }
  if (participantJoined != null) {
    _result.participantJoined = participantJoined;
  }
  if (participantLeft != null) {
    _result.participantLeft = participantLeft;
  }
  if (dominantSpeakerChanged != null) {
    _result.dominantSpeakerChanged = dominantSpeakerChanged;
  }
  if (joinResponse != null) {
    _result.joinResponse = joinResponse;
  }
  if (healthCheckResponse != null) {
    _result.healthCheckResponse = healthCheckResponse;
  }
  if (trackPublished != null) {
    _result.trackPublished = trackPublished;
  }
  if (trackUnpublished != null) {
    _result.trackUnpublished = trackUnpublished;
  }
  if (error != null) {
    _result.error = error;
  }
  if (callGrantsUpdated != null) {
    _result.callGrantsUpdated = callGrantsUpdated;
  }
  if (goAway != null) {
    _result.goAway = goAway;
  }
  if (iceRestart != null) {
    _result.iceRestart = iceRestart;
  }
  if (pinsUpdated != null) {
    _result.pinsUpdated = pinsUpdated;
  }
  if (callEnded != null) {
    _result.callEnded = callEnded;
  }
  if (participantUpdated != null) {
    _result.participantUpdated = participantUpdated;
  }
  return _result;
}