A custom function to determine if two items are equal.
Used to highlight the currently selected item in the list. If null, default equality == is used.
final bool Function(T a, T b)? compareFn;