Skip to content

JSUint8ClampedArrayToUint8ClampedList

extension JSUint8ClampedArrayToUint8ClampedList on JSUint8ClampedArray

Conversions from JSUint8ClampedArray to Uint8ClampedList.

Properties

toDart extension no setter

Uint8ClampedList get toDart

Converts this JSUint8ClampedArray to a Uint8ClampedList 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, 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.

Available on JSUint8ClampedArray, provided by the JSUint8ClampedArrayToUint8ClampedList extension

Implementation
dart
external Uint8ClampedList get toDart;