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,
  21. ParticipantMigrationComplete? participantMigrationComplete,
  22. ChangePublishOptions? changePublishOptions,
  23. InboundStateNotification? inboundStateNotification,
})

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,
  ParticipantMigrationComplete? participantMigrationComplete,
  ChangePublishOptions? changePublishOptions,
  InboundStateNotification? inboundStateNotification,
}) {
  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;
  if (participantMigrationComplete != null)
    result.participantMigrationComplete = participantMigrationComplete;
  if (changePublishOptions != null)
    result.changePublishOptions = changePublishOptions;
  if (inboundStateNotification != null)
    result.inboundStateNotification = inboundStateNotification;
  return result;
}