description

# toDart property

Uint16List get toDart

Converts this JSUint16Array to a Uint16List 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, 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.

## Implementation

    external Uint16List get toDart;