byteBuffer property

Future<ByteBuffer> 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;
}