Conn constructor

Conn({
  1. Object? localAddr,
  2. Object? remoteAddr,
  3. num? rid,
  4. ReadableStream<Uint8List>? readable,
  5. WritableStream<Uint8List>? writable,
  6. Future<void> closeWrite()?,
  7. void ref()?,
  8. void unref()?,
  9. Future<num?> read(
    1. Uint8List
    )?,
  10. Future<num> write(
    1. Uint8List
    )?,
  11. void close()?,
})

Implementation

factory Conn({
  _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,
  _i2.Future<_i2.num?> Function(_i9.Uint8List)? read,
  _i2.Future<_i2.num> Function(_i9.Uint8List)? write,
  void Function()? close,
}) =>
    Conn._(
      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),
      read: read == null ? null : _i3.allowInterop(read),
      write: write == null ? null : _i3.allowInterop(write),
      close: close == null ? null : _i3.allowInterop(close),
    );