inputStreamWithPort static method

DartInputStreamAdapter inputStreamWithPort(
  1. int sendPort
)

Creates the adapter. @param sendPort A port to that is will receive two types of messages: -1 => The NSInputStream has been closed and the port can be closed. _ => The number of types being required in a read:maxLength call.

Implementation

static DartInputStreamAdapter inputStreamWithPort(int sendPort) {
  final $ret = _objc_msgSend_1ya1kjn(
    _class_DOBJCDartInputStreamAdapter,
    _sel_inputStreamWithPort_,
    sendPort,
  );
  return DartInputStreamAdapter.fromPointer(
    $ret,
    retain: true,
    release: true,
  );
}