arrayBuffer method

Future<ByteBuffer?> arrayBuffer()

Reads the content of the blob as an array buffer asynchronously.

Returns:

  • a Future that completes with the array buffer of the blob if the read operation was successful,
  • a Future that completes with null if the read operation failed.

Implementation

Future<typed_data.ByteBuffer?> arrayBuffer() => js_util
    .promiseToFuture(js_util.callMethod(this, 'arrayBuffer', <Object?>[]));