listOf<T> function

List<T> listOf<T>(
  1. Iterable<T> list
)

To create list from Iterable

Implementation

List<T> listOf<T>(Iterable<T> list) => <T>[].also((it) => it.addAll(list));