flatten property
List<T>
get
flatten
Flattens a list of lists into a single list.
Example:
final flatList = nestedList.flatten;
Implementation
List<T> get flatten => expand((T i) => i as List<T>).toList();