toDart property

Uint16List toDart

Converts this JSUint16Array to a Uint16List by either casting or wrapping it.

When compiling to JavaScript, Uint16Lists are JSUint16Arrays and this operation will be a cast. When compiling to Wasm, a wrapper is introduced. Modifications to this JSUint16Array will affect the Uint16List and vice versa.

Implementation

external Uint16List get toDart;