copyWith method

ComparingValuesModel copyWith({
  1. int? id,
  2. bool? isCorrect,
  3. String? img,
  4. Color? selected,
  5. Color? unSelected,
  6. int? number,
})

Implementation

ComparingValuesModel copyWith({
  int? id,
  bool? isCorrect,
  String? img,
  Color? selected,
  Color? unSelected,
  int? number,
}) {
  return ComparingValuesModel(
      number: number ?? this.number,
      unSelected: unSelected ?? this.unSelected,
      selected: selected ?? this.selected,
      img: img ?? this.img,
      id: id ?? this.id,
      isCorrect: isCorrect ?? this.isCorrect);
}