copyWith method
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,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
GroupCallParticipant copyWith({
MessageSender? participantId,
int? audioSourceId,
int? screenSharingAudioSourceId,
GroupCallParticipantVideoInfo? Function()? videoInfo,
GroupCallParticipantVideoInfo? Function()? 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 != null ? videoInfo() : this.videoInfo,
screenSharingVideoInfo: screenSharingVideoInfo != null
? 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,
);