Skip to content

JSUint32ArrayToUint32List

extension JSUint32ArrayToUint32List on JSUint32Array

Conversions from JSUint32Array to Uint32List.

Properties

toDart extension no setter

Uint32List get toDart

Converts this JSUint32Array to a Uint32List 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, Uint32Lists are JSUint32Arrays and this operation will be a cast.

When compiling to Wasm, the JSUint32Array is wrapped with a Uint32List implementation and the wrapper is returned.

Modifications to this JSUint32Array will affect the returned Uint32List and vice versa.

Available on JSUint32Array, provided by the JSUint32ArrayToUint32List extension

Implementation
dart
external Uint32List get toDart;