copyWith method

CallParticipant copyWith({
  1. int? uid,
  2. String? userId,
  3. String? name,
  4. String? avatarUrl,
  5. bool? isLocal,
  6. bool? isMuted,
  7. bool? isVideoEnabled,
  8. bool? isSpeaking,
  9. bool? isConnected,
  10. DateTime? joinedAt,
  11. 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,
  );
}