findIndexByKey method
- Key key
override
Copied from SliverChildBuilderDelegate.
Implementation
@override
int findIndexByKey(Key key) {
if (findChildIndexCallback == null) return null;
assert(key != null);
Key childKey;
if (key is _SaltedValueKey) {
final saltedValueKey = key;
childKey = saltedValueKey.value;
} else {
childKey = key;
}
return findChildIndexCallback(childKey);
}