Uint8ClampedList.fromList(List<int> elements)

Creates a Uint8ClampedList of the same size as the elements list and copies over the values clamping when needed.

Source

external factory Uint8ClampedList.fromList(List<int> elements);