keyExtractor property

K Function(T item)? keyExtractor
final

Function to extract the key from an item.

When provided, selections are compared by key instead of object equality. This enables key-based initial selection and comparison.

Implementation

final K Function(T item)? keyExtractor;