ChildIndexGetter typedef Null safety

ChildIndexGetter = int? Function(Key key)

Called to find the new index of a child based on its key in case of reordering.

If the child with the key is no longer present, null is returned.

Used by SliverChildBuilderDelegate.findChildIndexCallback.

Implementation

typedef ChildIndexGetter = int? Function(Key key);