flatten method

List<T> flatten()

Flattens the list of lists to a single flat list of items

Implementation

List<T> flatten() {
  final newList = <T>[];
  forEach(newList.addAll);
  return newList;
}