toList method

List<T> toList()

Returns the current iterable as a new List.

Implementation

List<T> toList() {
  return value.toList();
}