List.from(Iterable elements, {bool growable: true})

Creates a list containing all elements.

The Iterator of elements provides the order of the elements.

This constructor returns a growable list when growable is true; otherwise, it returns a fixed-length list.

Source

external factory List.from(Iterable elements, { bool growable: true });