toDart property

Uint8ClampedList get toDart

Converts this JSUint8ClampedArray to a Uint8ClampedList 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, Uint8ClampedLists are JSUint8ClampedArrays and this getter will be a cast.

When compiling to Wasm, the JSUint8ClampedArray is wrapped with a Uint8ClampedList implementation and the wrapper is returned.

Modifications to this JSUint8ClampedArray will affect the returned Uint8ClampedList and vice versa.

Implementation

external Uint8ClampedList get toDart;