copyWith method

TaskSolutionAnswersItem copyWith({
  1. dynamic answer,
  2. TaskSolutionAnswersQuestion? question,
})

Implementation

TaskSolutionAnswersItem copyWith({
  dynamic answer,
  TaskSolutionAnswersQuestion? question,
}) {
  return TaskSolutionAnswersItem(
    answer: answer ?? this.answer,
    question: question ?? this.question,
  );
}