copyAsList method
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
Int16List copyAsList([int? length]) => Int16List.fromList(asList(length));