dispose method

void dispose()

Stops the C++ engine.

Implementation

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