Collects the elements into a List.
final list = IntStream.range(1, 5).toList(); // [1, 2, 3, 4]
List<int> toList();