JSInt16ArrayToInt16List
LogoDart

JSInt16ArrayToInt16List#

extension JSInt16ArrayToInt16List on JSInt16Array

Conversions from JSInt16Array to Int16List.

Properties#

toDart extension no setter#

Int16List get toDart

Converts this JSInt16Array to a Int16List by either casting or wrapping it.

Depending on whether code is compiled to JavaScript or Wasm, this conversion will have different semantics.

When compiling to JavaScript, Int16Lists are JSInt16Arrays and this operation will be a cast.

When compiling to Wasm, the JSInt16Array is wrapped with a Int16List implementation and the wrapper is returned.

Modifications to this JSInt16Array will affect the returned Int16List and vice versa.

Available on JSInt16Array, provided by the JSInt16ArrayToInt16List extension

Implementation
external Int16List get toDart;