copyWith method

QuestionItemOption copyWith({
  1. int? id,
  2. String? value,
  3. int? order,
  4. bool? isCorrect,
  5. String? recommendation,
})

Implementation

QuestionItemOption copyWith({
  int? id,
  String? value,
  int? order,
  bool? isCorrect,
  String? recommendation,
}) {
  return QuestionItemOption(
    id: id ?? this.id,
    value: value ?? this.value,
    order: order ?? this.order,
    isCorrect: isCorrect ?? this.isCorrect,
    recommendation: recommendation ?? this.recommendation,
  );
}