buffer property

  1. @pragma('vm:prefer-inline')
Uint8List get buffer

Returns the finished buffer. You must call finish before accessing this.

Implementation

@pragma('vm:prefer-inline')
Uint8List get buffer {
  assert(_finished);
  final finishedSize = size();
  return _buf.buffer
      .asUint8List(_buf.lengthInBytes - finishedSize, finishedSize);
}