areItemsTheSame method

  1. @nonVirtual
  2. @protected
  3. @override
bool areItemsTheSame(
  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 areItemsTheSame(E oldItem, E newItem) =>
    widget.areItemsTheSame(oldItem, newItem);