InputStream.from constructor Null safety

InputStream.from(
  1. InputStream other
)

Create a copy of other.

Implementation

InputStream.from(InputStream other)
    : buffer = other.buffer,
      offset = other.offset,
      start = other.start,
      _length = other._length,
      byteOrder = other.byteOrder;