initCachedWithChildren method
void
initCachedWithChildren()
Implementation
void initCachedWithChildren() {
preservedElements.clear();
for (int i = 0; i < widget.children.length; i++) {
SortableElement e = SortableElement();
e.view = widget.children[i];
e.originalIndex = i;
e.parent = this;
preservedElements.add(e);
}
syncPreservedCacheIndexes();
animationElements.clear();
animationElements.addAll(preservedElements);
}