flattenToList method

List<E> flattenToList()

Flatten to a List.

Implementation

List<E> flattenToList() => [for (final inner in this) ...inner];