sections property
List<Section>
get
sections
Section payloads in render order, EXCLUDING sections currently
mid-exit-animation. This is the input shape reorderSections
implicitly expects (via the keys returned by sectionKeys).
Implementation
List<Section> get sections {
_checkNotDisposed();
final live = _tree.liveRootKeys;
final out = <Section>[];
for (final k in live) {
if (!_assertIsSection(k)) {
continue;
}
final node = _tree.getNodeData(k);
if (node == null) {
continue;
}
final data = node.data;
if (data is SectionPayload<Section, Item>) {
out.add(data.value);
}
}
return out;
}