areContentsTheSame method

  1. @nonVirtual
  2. @protected
  3. @override
bool areContentsTheSame(
  1. E oldItem,
  2. E newItem
)
inherited

Called by the DiffUtil to decide whether two object represent the same Item. For example, if your items have unique ids, this method should check their id equality.

Implementation

@nonVirtual
@protected
@override
bool areContentsTheSame(E oldItem, E newItem) => true;