asByteBufferAsync property

Future<ByteBuffer?> get asByteBufferAsync

Implementation

Future<ByteBuffer?> get asByteBufferAsync async {
  var byteBuffer = asByteBuffer;
  if (byteBuffer != null) return byteBuffer;

  if (isBlob) {
    var blob = _body as HttpBlob;
    return blob.readByteBuffer();
  }

  return null;
}