RawWriter.withUint8List constructor

RawWriter.withUint8List(
  1. Uint8List list,
  2. {bool isExpanding = true}
)

Constructor that uses the Uint8List as buffer.

If isExpanding is true, buffer is expanded automatically.

Implementation

RawWriter.withUint8List(Uint8List list, {bool isExpanding = true})
    : this.withByteData(
        new ByteData.view(
          list.buffer,
          list.offsetInBytes,
          list.lengthInBytes,
        ),
        isExpanding: isExpanding,
      );