TlsConn constructor

TlsConn({
  1. Future<TlsHandshakeInfo> handshake()?,
  2. Object? localAddr,
  3. Object? remoteAddr,
  4. num? rid,
  5. ReadableStream<Uint8List>? readable,
  6. WritableStream<Uint8List>? writable,
  7. Future<void> closeWrite()?,
  8. void ref()?,
  9. void unref()?,
})

Implementation

factory TlsConn({
  _i2.Future<_i4.TlsHandshakeInfo> Function()? handshake,
  _i2.Object? localAddr,
  _i2.Object? remoteAddr,
  _i2.num? rid,
  _i5.ReadableStream<_i9.Uint8List>? readable,
  _i5.WritableStream<_i9.Uint8List>? writable,
  _i2.Future<void> Function()? closeWrite,
  void Function()? ref,
  void Function()? unref,
}) =>
    TlsConn._(
      handshake: handshake == null ? null : _i3.allowInterop(handshake),
      localAddr: localAddr ?? _i6.undefined,
      remoteAddr: remoteAddr ?? _i6.undefined,
      rid: rid,
      readable: readable ?? _i6.undefined,
      writable: writable ?? _i6.undefined,
      closeWrite: closeWrite == null ? null : _i3.allowInterop(closeWrite),
      ref: ref == null ? null : _i3.allowInterop(ref),
      unref: unref == null ? null : _i3.allowInterop(unref),
    );