Float32List.fromList constructor

Float32List.fromList(List<double> elements)

Creates a Float32List 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 4 bytes.

Implementation

external factory Float32List.fromList(List<double> elements);