talira

Compare

Freezedequatablebuilt_value
What it isCode generation for immutable data classes and unions in DartA Dart package that helps to implement value based equality without needing to explicitly override == and hashCodeImmutable value types, enum classes and JSON serialization for Dart, by code generation
KindOpen sourceOpen sourceOpen source
Trust0.590.420.46
Stars21991091884
Last commit2026-11-242026-09-162026-09-02
LicenceMITMITBSD-3-Clause
PricingFree and open sourceFree and open sourceFree and open source
Free tierYesYesYes
Self-hostable———
Ways to run it———
SOC 2———
HIPAA———
SSO———
API———
Plugins———
MCP server———
CompanyRemi RousseletFelix AngelovGoogle
public company (NASDAQ:GOOGL)
Features
  • 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
  • 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
  • Immutable value types with builders
  • EnumClass: classes that behave like enums
  • JSON serialization for value types and enums
  • Immutable collections through built_collection
  • Code generated with build_runner, one-off or in watch mode
Limitations
    • It is meant for immutable classes only: every field must be final, since hashCode on mutable values breaks hash-based collections.