Called to find the new index of a child based on its key in case of reordering.
key
If the child with the key is no longer present, null is returned.
Used by SliverChildBuilderDelegate.findChildIndexCallback.
typedef ChildIndexGetter = int? Function(Key key);