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
reflection_factory

Allows Dart reflection and method proxies using code generation across all platforms.

pub.devRemove
ScoresHealth85 (best)68
Maintenance97 (best)81
Quality85100 (best)
Popularity73 (best)38
Community80 (best)6
Compatibility85100 (best)
UsageDownloads (30 days)152k (best)5.7k
Likes220 (best)18
Pub points160 / 160160 / 160
GitHub stars86 (best)20
MaintenanceLatest release18.0.1, 6 days ago (best)2.13.0, 5 weeks ago
Major versions in 12 months80 (best)
Contributors12 (best)1
Publisheralexander-kirsch.comUnverified
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoYes
KindPure DartPure Dart
Code generationYesYes
Direct dependencies5 (best)12
LicenseMITAPACHE-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
  • Works across all Dart platforms where native mirrors are unavailable.
  • Supports third-party classes through reflection bridges.
  • Provides class proxies for intercepting method calls.
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 maintaining a build_runner code generation step.
  • Requires proper part directives in files where reflection is enabled.
WarningsNoneNone
copy_with_extension_gen vs reflection_factory: which Flutter package should you use? | pubscout