flatten property
List
get
flatten
Implementation
List<dynamic> get flatten {
final flattened = [];
for (final item in this) {
item is List ? flattened.addAll(item.flatten) : flattened.add(item);
}
return flattened;
}