copyWith method

Cell copyWith({
  1. int? value,
  2. bool? matched,
  3. bool? selected,
  4. CellFeedback? feedback,
})

Implementation

Cell copyWith({
  int? value,
  bool? matched,
  bool? selected,
  CellFeedback? feedback,
}) {
  return Cell(
    index: index,
    row: row,
    col: col,
    value: value ?? this.value,
    matched: matched ?? this.matched,
    selected: selected ?? this.selected,
    feedback: feedback ?? this.feedback,
  );
}