toDart property

Int32List get toDart

Converts this JSInt32Array to a Int32List 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, 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.

Implementation

external Int32List get toDart;