moveTo method
Moves this item to section and/or index. Forwards directly to
SectionedListController.moveItem:
sectionnon-null: reparents under that section (atindex, or appended whenindexis null)sectionnull,indexnon-null: reorders within the current section- both null: no-op
Both forms run a paint-only FLIP slide when animate is true (the
default). See SectionedListController.moveItem for exactly what
slides on each path.
Implementation
void moveTo({K? section, int? index, bool animate = true}) {
controller.moveItem(
key,
toSection: section,
index: index,
animate: animate,
);
}