DyteAudioIndicatorIconWidget constructor

DyteAudioIndicatorIconWidget({
  1. Key? key,
  2. required DyteMeetingParticipant participant,
  3. 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!);
  }
}