DocSink constructor

DocSink({
  1. int capacity = 64 * 1024,
  2. bool collectOffsets = false,
})

Creates a sink with an initial capacity in bytes.

Implementation

DocSink({int capacity = 64 * 1024, this.collectOffsets = false})
  : _data = Uint8List(capacity < 64 ? 64 : capacity);