hardDrop method
void
hardDrop()
Implementation
void hardDrop() {
if (_state.status != TetrisGameStatus.playing) return;
final piece = _state.activePiece;
if (piece == null) return;
final ghost = _collision.ghostPiece(piece, _state.board);
final dropped = ghost.position.row - piece.position.row;
_state = _state.copyWith(
activePiece: ghost,
scoreState: _scoring.onHardDrop(_state.scoreState, dropped),
);
// audioHooks?.onHardDrop?.call();
_lockPiece();
}