findIndexByKey method

int findIndexByKey (
  1. Key key
)

Find index of child element with associated key.

This will be called during performRebuild in SliverMultiBoxAdaptorElement to check if a child has moved to a different position. It should return the index of the child element with associated key, null if not found.

Implementation

int findIndexByKey(Key key) => null;