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,
- ParticipantMigrationComplete? participantMigrationComplete,
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,
}) {
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;
}
return $result;
}