RawWriter.withUint8List constructor

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

Creates a writer backed by a Uint8List.

Implementation

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