toDart property

Float32List get toDart

Converts this JSFloat32Array to a Float32List 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, Float32Lists are JSFloat32Arrays and this getter will be a cast.

When compiling to Wasm, the JSFloat32Array is wrapped with a Float32List implementation and the wrapper is returned.

Modifications to this JSFloat32Array will affect the returned Float32List and vice versa.

Implementation

external Float32List get toDart;