toList abstract method

List<T> toList()

Returns a List containing the elements of this stream.

Example

final list = GenericStream.of([1, 2, 3, 4, 5]).toList();

Implementation

List<T> toList();