dispose method

void dispose()

Stops the stockfish engine.

Implementation

void dispose() {
  final stateValue = state.value;
  if (stateValue == StockfishState.ready) {
    stdin = 'quit';
  }
}