W3cubDocs

/Dart 2

Int16List.fromList constructor

Int16List.fromList(List<int> elements)

Creates a Int16List with the same length as the elements list and copies over the elements.

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

Implementation

external factory Int16List.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/Int16List/Int16List.fromList.html