description

# Int16List.fromList constructor Null safety

Int16List.fromList(

1. 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.

The list is backed by a ByteBuffer containing precisely `elements.length` times 2 bytes.

## Implementation

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