Appearance
Int32ListToJSInt32Array
extension Int32ListToJSInt32Array on Int32ListConversions from Int32List to JSInt32Array.
Properties
toJS extension no setter
JSInt32Array get toJSConverts this Int32List to a JSInt32Array by either casting, unwrapping, or cloning the Int32List.
INFO
Depending on whether code is compiled to JavaScript or Wasm, this conversion will have different semantics.
When compiling to JavaScript, all typed lists are the equivalent JavaScript typed arrays, and therefore this getter simply casts.
When compiling to Wasm, this Int32List is a wrapper around a Int32Array if it was converted via JSInt32ArrayToInt32List.toDart. If it is a wrapper, this getter unwraps it and returns the Int32Array. If it's instantiated in Dart, this getter clones this Int32List's values into a new JSInt32Array.
Avoid assuming that modifications to this Int32List will affect the returned JSInt32Array and vice versa on all compilers unless it was converted first via JSInt32ArrayToInt32List.toDart.
Available on Int32List, provided by the Int32ListToJSInt32Array extension
Implementation
dart
external JSInt32Array get toJS;