copyWith method

Cell copyWith({
  1. bool? filled,
  2. TetrominoType? type,
})

Implementation

Cell copyWith({bool? filled, TetrominoType? type}) =>
    Cell(filled: filled ?? this.filled, type: type ?? this.type);