Skip to content

JSFloat32ArrayToFloat32List

extension JSFloat32ArrayToFloat32List on JSFloat32Array

Conversions from JSFloat32Array to Float32List.

Properties

toDart extension no setter

Float32List get toDart

Converts this JSFloat32Array to a Float32List by either casting or wrapping it.

INFO

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.

Available on JSFloat32Array, provided by the JSFloat32ArrayToFloat32List extension

Implementation
dart
external Float32List get toDart;