Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributecopy_with_extension_gen

Generate type‑safe copyWith extensions for annotated classes and record typedefs.

pub.devRemove
proto_annotations

Annotations to mark and configure business model classes for code generation of .proto and Dart mappers.

pub.devRemove
ScoresHealth85 (best)75
Maintenance97 (best)86
Quality8597 (best)
Popularity73 (best)36
Community80 (best)64
Compatibility8585
UsageDownloads (30 days)152k (best)45k
Likes220 (best)6
Pub points160 / 160160 / 160
GitHub stars86—
MaintenanceLatest release18.0.1, 6 days ago (best)7.1.0, 3 months ago
Major versions in 12 months81 (best)
Contributors12—
Publisheralexander-kirsch.comsquarealfa.com
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationYesYes
Direct dependencies5 (best)6
LicenseMITMPL-2.0
Setup effortMediumLow
JudgementStrengths
  • Zero runtime cost, compile‑time safety
  • Supports Dart records and advanced options like immutable fields
  • No extra dependencies beyond build_runner
  • Automates the generation of .proto files and Dart mapper classes.
  • Supports well-known types, polymorphism, and configuration options via annotations.
Weaknesses
  • Requires build_runner to regenerate code
  • Limited to annotated classes/records, not dynamic objects
  • Breaking changes in major releases (e.g., 17.0.0)
  • Requires a separate generator package to perform the actual code generation.
  • Adds external dependencies like grpc and protobuf to your project.
WarningsNone
  • File-level copyleft
copy_with_extension_gen vs proto_annotations: which Flutter package should you use? | pubscout