Stack Explorer

Freezed

Utility

Code generator for immutable data classes in Dart

100K/week ↑ Growing

Features

codegenimmutableunionsjson

Pros and Cons

Ventajas

  • + Immutable data classes
  • + Pattern matching with unions
  • + json_serializable integration
  • + Generated copyWith
  • + Reduces boilerplate

Desventajas

  • - Requires build_runner
  • - Generation time
  • - Learning curve

Use Cases

  • Immutable data models
  • Union types in Dart
  • BLoC states
  • JSON serialization
  • Domain models

Tecnologías Relacionadas