Generating Freezed Models

Generates immutable Dart data classes, sealed union types, and deep copyWith using Freezed (v3.2.x) with optional json_serializable integration. Use when creating DTOs, API response models, app state classes, or any model requiring immutability, pattern matching, or JSON serialization. Activates on: @freezed annotation, freezed_annotation import, immutable data class request, copyWith deep nesting, union/sealed types for loading/data/error states, generic response wrappers, or build_runner code generation for models.

Poorgramer-Zack 7d9e694 5.7 KB Updated

File contents

Poorgramer-Zack/dart-expert-skills/tree/main/skills/freezed commit 7d9e694912

Frequently asked questions

npx skillmds@latest add poorgramer-zack/generating-freezed-models