areContentsTheSame method

  1. @override
bool areContentsTheSame(
  1. int oldItemPosition,
  2. int newItemPosition
)

Checks if the content of two messages at the given positions is the same. Uses equalityChecker from freezed_annotation for deep comparison.

Implementation

@override
bool areContentsTheSame(int oldItemPosition, int newItemPosition) =>
    equalityChecker(oldList[oldItemPosition], newList[newItemPosition]);