flatten property

List flatten

Expands each element of this Iterable into zero or more elements.

Merge list of lists into single list

Example:

list.flatten // [[1,2],[3,4]] -> [1,2,3,4]

Implementation

List<dynamic> get flatten => FxList.flatten(this);