Int16List.fromList(List<int> elements)

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

Source

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