copyWith method
CallParticipant
copyWith(
{ - int? uid,
- String? userId,
- String? name,
- String? avatarUrl,
- bool? isLocal,
- bool? isMuted,
- bool? isVideoEnabled,
- bool? isSpeaking,
- bool? isConnected,
- DateTime? joinedAt,
- DateTime? leftAt,
})
Implementation
CallParticipant copyWith({
int? uid,
String? userId,
String? name,
String? avatarUrl,
bool? isLocal,
bool? isMuted,
bool? isVideoEnabled,
bool? isSpeaking,
bool? isConnected,
DateTime? joinedAt,
DateTime? leftAt,
}) {
return CallParticipant(
uid: uid ?? this.uid,
userId: userId ?? this.userId,
name: name ?? this.name,
avatarUrl: avatarUrl ?? this.avatarUrl,
isLocal: isLocal ?? this.isLocal,
isMuted: isMuted ?? this.isMuted,
isVideoEnabled: isVideoEnabled ?? this.isVideoEnabled,
isSpeaking: isSpeaking ?? this.isSpeaking,
isConnected: isConnected ?? this.isConnected,
joinedAt: joinedAt ?? this.joinedAt,
leftAt: leftAt ?? this.leftAt,
);
}