# felangel/equatable

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

Repository: https://github.com/felangel/equatable
Canonical: https://ross.abutalabs.com/products/equatable
Homepage: https://pub.dev/packages/equatable
Language: Dart
License: MIT
License Family: permissive
Topics: flutter, flutter-package, equality, dart, dartlang, equality-comparison, hashcode, identity
Last push: 2026-07-05T05:06:47+00:00

## Health v2 (maintenance only)
Score: 82/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 91, release rhythm 60, longevity 100
- inputs: {"age_days": 2796, "days_push": 59, "days_rel": 59, "gap_med": 181, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1087, forks 119 (observed 2026-08-28T04:03:32.269188+00:00)

## What it is
Equatable is a Dart package that implements value-based equality for your classes, overriding == and hashCode automatically so you don't have to write boilerplate. It requires no code generation and works across all Dart and Flutter platforms.

## Use cases
- compare dart objects by value instead of identity
- avoid overriding == and hashCode manually
- make flutter state classes comparable in tests
- use value objects in sets and maps correctly
- reduce boilerplate in bloc state classes
- implement deep equality for complex class properties

## When to choose
- you write Dart or Flutter code and need value equality without codegen
- you use bloc or similar patterns where state comparison matters
- you want a lightweight, zero-dependency-heavy equality solution

## When to avoid
- you prefer code-generation approaches like freezed or built_value
- you need equality semantics beyond property-based comparison
- you're not working in Dart or Flutter

## Facets
- artifact type: library
- maturity: stable
- function: serialization
- domain: developer-tools, cross-platform, mobile-development
- platform: cross-platform
- tags: equality, hashcode, value-objects, flutter, dart-package, boilerplate-reduction

## Member repositories
- felangel/equatable (main) score 82

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:32.269188+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:49:27.099883+00:00, confidence not recorded.
  - readme: https://github.com/felangel/equatable (fetched 2026-08-28T04:03:32.269188+00:00, sha 5d5cead78a0c)
  - homepage: https://pub.dev/packages/equatable (fetched 2026-08-29T12:52:00.607823+00:00, sha e071cf03e48a)
  - site_page: https://pub.dev/packages/equatable/install (fetched 2026-08-29T12:52:00.612192+00:00, sha f1561d636cad)
  - site_page: https://pub.dev/documentation/equatable/latest (fetched 2026-08-29T12:52:00.613871+00:00, sha 4c09be5fb07a)
  - site_page: https://pub.dev/packages/equatable/changelog (fetched 2026-08-29T12:52:00.610461+00:00, sha 483b7a17a69e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
