toDart property

ByteData get toDart

Converts this JSDataView to a ByteData by either casting or wrapping it.

When compiling to JavaScript, ByteDatas are JSDataViews and this operation will be a cast. When compiling to Wasm, a wrapper is introduced. Modifications to this JSDataView will affect the ByteData and vice versa.

Implementation

external ByteData get toDart;