areItemsTheSame property

(bool Function(T oldItem, T newItem)?) areItemsTheSame
final

Called by the DiffUtil to decide whether two object represent the same Item. By default, this will check whether oldItem.getId() == newItem.getId();

Implementation

final bool Function(T oldItem, T newItem)? areItemsTheSame;