EdsonBueno / infinite_scroll_pagination

Flutter package to help you lazily load and display pages of items as the user scrolls down your screen.
https://pub.dev/packages/infinite_scroll_pagination
MIT License
623 stars 210 forks source link

change shallow equality, hash to deep one #234

Closed Abdktefane closed 6 months ago

Abdktefane commented 1 year ago

fixed #233

clragon commented 1 year ago

Rebuilds like this usually shouldnt be that costly. I dont think this change should be implemented. However, the cleanest way would be the following:

  @override
  bool operator ==(Object other) {
    if (identical(this, other)) {
      return true;
    }
    return other is PagingState &&
        listEquals(other.itemList, itemList) &&
        other.error == error &&
        other.nextPageKey == nextPageKey;
  }
clragon commented 6 months ago

closing this as its outdated.