onSoftDrop method

ScoreState onSoftDrop(
  1. ScoreState state,
  2. int cells
)

Points for soft drop (1 per cell) and hard drop (2 per cell).

Implementation

ScoreState onSoftDrop(ScoreState state, int cells) =>
    state.copyWith(score: state.score + cells);