toList method

List<T> toList()

Implementation

List<T> toList() {
  return List<T>.generate(length, (index) => this[index]);
}