copyAsList method

Float32List copyAsList([
  1. int? length
])

Returns a dart list copy off the pointer.

The resulting list is a copy of the memory. This means if you modify elements of the list, the data the pointer is not changed and you can safely dispose the pointer without breaking the copied data. You can either get a copy of the whole pointer, or only the first length elements. (Counted in elements, not bytes).

Implementation

Float32List copyAsList([int? length]) => Float32List.fromList(asList(length));