byteBuffer property

Future<ByteBuffer> get byteBuffer

Converts the body of the content to a ByteBuffer asynchronously.

Implementation

Future<ByteBuffer> get byteBuffer async {
  final buffer = Uint8Buffer()..addAll(await toByteList());

  return buffer.buffer;
}