copyWith method

TaskScoresItem copyWith({
  1. int? questionId,
  2. num? score,
})

Implementation

TaskScoresItem copyWith({int? questionId, num? score}) {
  return TaskScoresItem(
    questionId: questionId ?? this.questionId,
    score: score ?? this.score,
  );
}