DyteAudioIndicatorIconWidget constructor
DyteAudioIndicatorIconWidget({
- Key? key,
- required DyteMeetingParticipant participant,
- double? iconSize,
Implementation
DyteAudioIndicatorIconWidget({
super.key,
required this.participant,
this.iconSize,
}) : isLocalUser = participant.id == dyteMobileClient.localUser.id,
localUserAudioNotifier = participant.id == dyteMobileClient.localUser.id
? LocalUserAudioNotifier()
: null,
audioNotifier = participant.id != dyteMobileClient.localUser.id
? AudioNotifier(participant)
: null {
if (isLocalUser) {
dyteMobileClient.addSelfEventsListener(localUserAudioNotifier!);
} else {
dyteMobileClient.addParticipantEventsListener(audioNotifier!);
}
}