copyWith method

AnswerMarks copyWith({
  1. ValueGetter<int?>? wrongPitch,
  2. ValueGetter<int?>? wrongButton,
  3. ValueGetter<Uint8List?>? wrongScore,
  4. ValueGetter<int?>? explainedAt,
})

Implementation

AnswerMarks copyWith({
  ValueGetter<int?>? wrongPitch,
  ValueGetter<int?>? wrongButton,
  ValueGetter<Uint8List?>? wrongScore,
  ValueGetter<int?>? explainedAt,
}) => AnswerMarks(
  wrongPitch: wrongPitch != null ? wrongPitch() : this.wrongPitch,
  wrongButton: wrongButton != null ? wrongButton() : this.wrongButton,
  wrongScore: wrongScore != null ? wrongScore() : this.wrongScore,
  explainedAt: explainedAt != null ? explainedAt() : this.explainedAt,
);