Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributecopy_with_extension

Annotation for generating copyWith extensions code using copy_with_extension_gen.

pub.devRemove
json_annotation

Provides annotations for json_serializable to generate JSON (de)serialization code.

pub.devRemove
ScoresHealth87 (best)84
Maintenance97 (best)70
Quality85 (best)81
Popularity7197 (best)
Community8080
Compatibility100100
UsageDownloads (30 days)240k16M (best)
Likes1111.3k (best)
Pub points160 / 160 (best)150 / 160
GitHub stars861.6k (best)
MaintenanceLatest release18.0.1, 6 days ago (best)4.12.0, 6 months ago
Major versions in 12 months80 (best)
Contributors1251 (best)
Publisheralexander-kirsch.comgoogle.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies11
LicenseMITBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Automates boilerplate generation for immutable models
  • Supports Dart primary constructors and shallow copying for record typedefs
  • Small, zero‑runtime‑overhead package.
  • Works with Dart 3 and newer SDKs.
  • Provides fine‑grained control via JsonKey options.
Weaknesses
  • Requires build_runner and a separate generator package to produce code
  • Breaking changes in generator rules can require updating generated files and class configurations
  • Requires a separate code‑gen step with build_runner and json_serializable.
  • Only useful when paired with a generator; on its own it does nothing.
WarningsNoneNone
copy_with_extension vs json_annotation: which Flutter package should you use? | pubscout