W3cubDocs

/Dart 2

Uint8ClampedList.fromList constructor

Uint8ClampedList.fromList(List<int> elements)

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

Values are clamped to fit in the list when they are copied, the same way storing values clamps them.

Implementation

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

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-typed_data/Uint8ClampedList/Uint8ClampedList.fromList.html