# equatable

> A Dart package that helps to implement value based equality without needing to explicitly override == and hashCode

Source: https://talira.ai/catalog/equatable-nggpq8v5
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / value equality](https://talira.ai/categories/libraries/value-equality), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: MIT[^2]
- Pricing: Free and open source[^2]
- Pricing notes: Free and open source under the MIT licence.
- Free tier: yes[^2]
- Backed by: [Felix Angelov](https://talira.ai/orgs/felangel.md)

equatable gives Dart and Flutter classes value-based equality: a class extends `Equatable` (or mixes it in) and lists the fields that matter in `props`, and equatable implements `==` and `hashCode` from them. It can also generate `toString` from the same fields, per class with `stringify` or globally with `EquatableConfig`. It is meant for immutable classes, and works in Flutter and server-side Dart alike. Felix Angelov maintains it.

## Links

- GitHub: https://github.com/felangel/equatable
- Docs: https://pub.dev/documentation/equatable/latest/

## Problems it solves

- Comparing two Dart objects with the same fields returns false
- I am tired of hand-writing == and hashCode overrides for every Flutter model and state class
- My Flutter state updates are not detected because objects compare by identity

## Features

- Implements == and hashCode from a props list
- Works as a base class or as a mixin
- Optional toString built from props (stringify, or EquatableConfig globally)
- Pure Dart, for Flutter and server-side Dart

## Limitations

- It is meant for immutable classes only: every field must be final, since hashCode on mutable values breaks hash-based collections.[^1]

## Capabilities

- Has official SDKs: plan not known

## Trust

Overall: 0.42 out of 1.
Signals: maintenance 0.48, adoption 0.61, momentum 0.33, community 0.56, backing 0.30, extensibility 0.00.

- last commit 2 months ago
- 5 commits in the last 90 days
- latest release v3.0.0 2 months ago
- 1.1k GitHub stars
- 24 contributors
- accepts sponsorship (Github)
- backed by Felix Angelov

## Alternatives

- [Freezed](https://talira.ai/catalog/freezed-pym7c99a.md): Code generation for immutable data classes and unions in Dart

## Sources

[^1]: https://github.com/felangel/equatable (checked 25 Nov 2026)
[^2]: https://github.com/felangel/equatable/blob/master/LICENSE (checked 25 Nov 2026)
