copyWith method
Implementation
MCQAnswerConfig copyWith({
String? id,
String? answer,
bool? isSelected,
bool? isCorrectAnswer,
bool? isIncorrectAnswer,
}) {
return MCQAnswerConfig(
id: id ?? this.id,
answer: answer ?? this.answer,
isCorrectAnswer: isCorrectAnswer ?? this.isCorrectAnswer,
isIncorrectAnswer: isIncorrectAnswer ?? this.isIncorrectAnswer,
isSelected: isSelected ?? this.isSelected,
);
}