equals method
Implementation
Future<bool> equals(ReferenceToItemOnOtherIsolate other) async {
assert(isFromOldList != other.isFromOldList,
"We shouldn't need to compare items of the same list.");
if (hashCode != other.hashCode) {
return false;
}
final itemFromOldList = isFromOldList ? this : other;
final itemFromNewList = isFromOldList ? other : this;
sendPort
..send(false)
..send(itemFromOldList.index)
..send(itemFromNewList.index);
return await port.next;
}