FLUTTER ECOSYSTEM

zorphy_annotation

Annotations for zorphy code generation package that provides clean class definitions with copyWith, JSON serialization, toString, equality, and inheritance support

Latest version
2.4.3
30-day downloads
22.1K
Likes
0
Pub points
140

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

zorphy_annotation is a Dart package that provides annotations for code generation within the zorphy ecosystem. It enables developers to define clean, maintainable classes with built-in support for copyWith, JSON serialization, toString, equality checks, and inheritance. By applying simple annotations, developers can automatically generate boilerplate code, reducing errors and improving development speed. The package integrates seamlessly with Flutter and other Dart platforms, making it ideal for managing data models across multiple environments.

Use cases
  • Generating immutable data classes
  • Automating JSON serialization
  • Creating reusable model classes
  • Simplifying state management
  • Enabling deep copying with copyWith
  • Supporting cross-platform app development
Key features
  • Automatic copyWith method generation
  • Built-in JSON serialization support
  • Equality and toString method generation
  • Inheritance-aware code generation
  • Minimal boilerplate with annotations
  • Cross-platform compatibility
Suitable for
  • Flutter developers using data models
  • Teams prioritizing code cleanliness
  • Projects requiring JSON handling
  • Apps needing immutable objects
  • Developers using code generation tools
  • Projects targeting multiple platforms
Considerations
  • Requires a code generation build step
  • Depends on zorphy's code generator
  • May increase build time
  • Needs proper annotation setup
  • Limited customization without additional configuration
  • Best used in conjunction with zorphy_core
Supported platformsAndroidiOSLinuxmacOSWebWindows

Install package

flutter pub add zorphy_annotation

Categories

Dependencies

Dependency list 5 items

Source repository

Related projects

No data available yet.

Rankings