copyWith method

GroupCallParticipant copyWith({
  1. MessageSender? participantId,
  2. int? audioSourceId,
  3. int? screenSharingAudioSourceId,
  4. GroupCallParticipantVideoInfo? videoInfo,
  5. GroupCallParticipantVideoInfo? screenSharingVideoInfo,
  6. String? bio,
  7. bool? isCurrentUser,
  8. bool? isSpeaking,
  9. bool? isHandRaised,
  10. bool? canBeMutedForAllUsers,
  11. bool? canBeUnmutedForAllUsers,
  12. bool? canBeMutedForCurrentUser,
  13. bool? canBeUnmutedForCurrentUser,
  14. bool? isMutedForAllUsers,
  15. bool? isMutedForCurrentUser,
  16. bool? canUnmuteSelf,
  17. int? volumeLevel,
  18. String? order,
})

Implementation

GroupCallParticipant copyWith({
  MessageSender? participantId,
  int? audioSourceId,
  int? screenSharingAudioSourceId,
  GroupCallParticipantVideoInfo? videoInfo,
  GroupCallParticipantVideoInfo? screenSharingVideoInfo,
  String? bio,
  bool? isCurrentUser,
  bool? isSpeaking,
  bool? isHandRaised,
  bool? canBeMutedForAllUsers,
  bool? canBeUnmutedForAllUsers,
  bool? canBeMutedForCurrentUser,
  bool? canBeUnmutedForCurrentUser,
  bool? isMutedForAllUsers,
  bool? isMutedForCurrentUser,
  bool? canUnmuteSelf,
  int? volumeLevel,
  String? order,
}) =>
    GroupCallParticipant(
      participantId: participantId ?? this.participantId,
      audioSourceId: audioSourceId ?? this.audioSourceId,
      screenSharingAudioSourceId:
          screenSharingAudioSourceId ?? this.screenSharingAudioSourceId,
      videoInfo: videoInfo ?? this.videoInfo,
      screenSharingVideoInfo:
          screenSharingVideoInfo ?? this.screenSharingVideoInfo,
      bio: bio ?? this.bio,
      isCurrentUser: isCurrentUser ?? this.isCurrentUser,
      isSpeaking: isSpeaking ?? this.isSpeaking,
      isHandRaised: isHandRaised ?? this.isHandRaised,
      canBeMutedForAllUsers:
          canBeMutedForAllUsers ?? this.canBeMutedForAllUsers,
      canBeUnmutedForAllUsers:
          canBeUnmutedForAllUsers ?? this.canBeUnmutedForAllUsers,
      canBeMutedForCurrentUser:
          canBeMutedForCurrentUser ?? this.canBeMutedForCurrentUser,
      canBeUnmutedForCurrentUser:
          canBeUnmutedForCurrentUser ?? this.canBeUnmutedForCurrentUser,
      isMutedForAllUsers: isMutedForAllUsers ?? this.isMutedForAllUsers,
      isMutedForCurrentUser:
          isMutedForCurrentUser ?? this.isMutedForCurrentUser,
      canUnmuteSelf: canUnmuteSelf ?? this.canUnmuteSelf,
      volumeLevel: volumeLevel ?? this.volumeLevel,
      order: order ?? this.order,
    );