import 'dart:async'; abstract class StockfishChessEngineAbstractBindings { final stdoutController = StreamController.broadcast(); Future stockfishMain(Function active); void cleanUp(int exitCode); void write(String line); Stream get read => stdoutController.stream; }