toArray method

List<E> toArray()

Converts this list to an array (same as toList in Dart).

Implementation

List<E> toArray() => toList();