MemPtr constructor Null safety

MemPtr(
  1. List<int> other,
  2. [int offset = 0,
  3. int _length = -1,
  4. int byteOrder = LITTLE_ENDIAN]
)

Implementation

MemPtr(List<int> other,
    [this.offset = 0, this._length = -1, this.byteOrder = LITTLE_ENDIAN])
    : buffer = other {
  if (_length < 0 || _length > buffer.length) {
    _length = buffer.length;
  }
}