DapServer constructor

DapServer(
  1. Stream<List<int>> input,
  2. StreamSink<List<int>> output, {
  3. bool ipv6 = false,
  4. bool enableDds = true,
  5. bool enableAuthCodes = true,
  6. bool test = false,
  7. Logger? logger,
  8. Function? onError,
})

Implementation

DapServer(
  Stream<List<int>> input,
  StreamSink<List<int>> output, {
  this.ipv6 = false,
  this.enableDds = true,
  this.enableAuthCodes = true,
  this.test = false,
  this.logger,
  Function? onError,
}) : channel = ByteStreamServerChannel(input, output, logger) {
  adapter = test
      ? DartTestDebugAdapter(
          channel,
          ipv6: ipv6,
          enableDds: enableDds,
          enableAuthCodes: enableAuthCodes,
          logger: logger,
          onError: onError,
        )
      : DartCliDebugAdapter(
          channel,
          ipv6: ipv6,
          enableDds: enableDds,
          enableAuthCodes: enableAuthCodes,
          logger: logger,
          onError: onError,
        );
}