toList method

List<int> toList()

The elements in use, copied into a new growable list.

Implementation

List<int> toList() => List<int>.generate(length, (i) => storage[i]);