toDart property
Converts this JSDataView to a ByteData by either casting or wrapping it.
Note
Depending on whether code is compiled to JavaScript or Wasm, this conversion will have different semantics.
When compiling to JavaScript, ByteDatas are JSDataViews and this operation will be a cast.
When compiling to Wasm, the JSDataView is wrapped with a ByteData implementation and the wrapper is returned.
Modifications to this JSDataView will affect the returned ByteData and vice versa.
Implementation
external ByteData get toDart;