Skip to content

JSInt32ArrayToInt32List

extension JSInt32ArrayToInt32List on JSInt32Array

Conversions from JSInt32Array to Int32List.

Properties

toDart extension no setter

Int32List get toDart

Converts this JSInt32Array to a Int32List 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, Int32Lists are JSInt32Arrays and this operation will be a cast.

When compiling to Wasm, the JSInt32Array is wrapped with a Int32List implementation and the wrapper is returned.

Modifications to this JSInt32Array will affect the returned Int32List and vice versa.

Available on JSInt32Array, provided by the JSInt32ArrayToInt32List extension

Implementation
dart
external Int32List get toDart;