findItemIndexCallback property
Looks up the current index of a key on a widget from rowBuilder.
For reordered rows, give each row a stable key and return its zero-based index in the current snapshot, not counting separators. Return null for a key that is no longer present. This lets mounted rows keep their state when their index changes.
Implementation
final ChildIndexGetter? findItemIndexCallback;