areItemsTheSame method
Checks if two messages at the given positions represent the same item.
Compares messages based on their unique id
.
Implementation
@override
bool areItemsTheSame(int oldItemPosition, int newItemPosition) =>
oldList[oldItemPosition].id == newList[newItemPosition].id;