felangel / equatable

A Dart package that helps to implement value based equality without needing to explicitly override == and hashCode.
https://pub.dev/packages/equatable
MIT License
920 stars 102 forks source link

fix: use SplayTreeSet to resolve inconsistent hashCode #142

Closed devmil closed 2 years ago

devmil commented 2 years ago

Fixes #141

Status

READY

Breaking Changes

NO

Description

This fixes the inconsistent hashCode behaviour for Sets by using a SplayTreeSet to ensure a consistent iteration order.

Todos

Steps to Test or Reproduce

See #141

Impact to Remaining Code Base

None known

felangel commented 2 years ago

@devmil thanks for the contribution! I’ll merge and publish this tomorrow 👍