toDart property

ByteBuffer get toDart

Converts this JSArrayBuffer to a ByteBuffer by either casting or wrapping it.

When compiling to JavaScript, ByteBuffers are JSArrayBuffers and this operation will be a cast. When compiling to Wasm, a wrapper is introduced. Modifications to this JSArrayBuffer will affect the ByteBuffer and vice versa.

Implementation

external ByteBuffer get toDart;