Back to directory

Freezed

Freezed is a Dart code generator that produces immutable data classes, tagged unions and cloning support, so a developer only has to write the definition of a model instead of its boilerplate.

Freezed

Freezed is a code generator for Dart data classes, tagged unions, nested classes and cloning. Defining a model by hand normally means writing a constructor and properties, overriding toString, equality and hashCode, implementing a copyWith method, and handling serialization; Freezed generates all of this from a short model definition.

It supports primary constructors, added getters and methods on generated models, asserts, default values, extending and mixing in other classes, mutable as well as immutable classes, JSON serialization through fromJson and toJson, and pattern matching over union types.

It is used with the build_runner code generation setup in a Dart or Flutter project, and has editor extensions for VS Code and IntelliJ or Android Studio.

More in Libraries

See all 292
  • OpenDecision

    deepanwadhwa.github.io

    An open-source Python package that answers typed questions about application state or documents using a local natural-language-inference model, returning structured choice, score, yes/no or evidence-relation values instead of free text.

  • TradeCanvas

    bonguynvan.github.io

    A zero-dependency canvas charting engine for building TradingView-style trading charts in JavaScript, with 66 technical indicators, 24 drawing tools, 17 chart types, and real-time streaming.

  • 3d retro graphics

    3d-retro.com

    A free, CC0-licensed library of copy-paste retro 3D and demoscene graphics effects, such as plasma, raytracing, and voxel terrain, runnable as WebGL 1 or plain 2D canvas.