SfuEvent constructor
SfuEvent({
- SubscriberOffer? subscriberOffer,
- PublisherAnswer? publisherAnswer,
- ConnectionQualityChanged? connectionQualityChanged,
- AudioLevelChanged? audioLevelChanged,
- 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,
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;
}