talira

Compare

equatableFreezed
What it isA Dart package that helps to implement value based equality without needing to explicitly override == and hashCodeCode generation for immutable data classes and unions in Dart
KindOpen sourceOpen source
Trust0.420.59
Stars10912199
Last commit2026-09-162026-11-24
LicenceMITMIT
PricingFree and open sourceFree and open source
Free tierYesYes
Self-hostable——
Ways to run it——
SOC 2——
HIPAA——
SSO——
API——
Plugins——
MCP server——
CompanyFelix AngelovRemi Rousselet
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
  • generates ==, hashCode, toString and copyWith for Dart classes
  • union types (sealed classes) with pattern matching
  • JSON serialization through json_serializable
  • deep copy with nested copyWith
  • lint package freezed_lint
Limitations
  • It is meant for immutable classes only: every field must be final, since hashCode on mutable values breaks hash-based collections.