Appearance
JSUint16ArrayToUint16List
extension JSUint16ArrayToUint16List on JSUint16ArrayConversions from JSUint16Array to Uint16List.
Properties
toDart extension no setter
Uint16List get toDartConverts this JSUint16Array to a Uint16List 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, Uint16Lists are JSUint16Arrays and this operation will be a cast.
When compiling to Wasm, the JSUint16Array is wrapped with a Uint16List implementation and the wrapper is returned.
Modifications to this JSUint16Array will affect the returned Uint16List and vice versa.
Available on JSUint16Array, provided by the JSUint16ArrayToUint16List extension
Implementation
dart
external Uint16List get toDart;