iterator property
Iterator<Element>
get
iterator
Returns an iterator over the selected (non-null) elements.
For example, to iterate over the selected elements:
for (final element in selection) {
print(element);
}
To flatten the selection to an list:
final elements = [...selection];
Implementation
Iterator<Element> get iterator =>
_groups.expand((g) => g.where((e) => e != null).cast<Element>()).iterator;