ScalarListView.fromList constructor Null safety
Create a new vector list from a list of vectors.
Optionally it is possible to specify an offset
in the
buffer and a stride
between each vector.
Implementation
ScalarListView.fromList(List<double> list, [int offset = 0, int stride = 0])
: _offset = offset,
_stride = stride == 0 ? 1 : stride,
_length = list.length,
_buffer =
Float32List(offset + list.length * (stride == 0 ? 1 : stride)) {
for (var i = 0; i < _length; i++) {
this[i] = list[i];
}
}