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
stealth_enum

Obfuscates Dart enums into zero-cost extension types to eliminate metadata from binaries.

pub.devRemove
ScoresHealth85 (best)72
Maintenance97 (best)90
Quality8594 (best)
Popularity73 (best)24
Community80 (best)41
Compatibility85100 (best)
UsageDownloads (30 days)152k (best)1.5k
Likes220 (best)15
Pub points160 / 160160 / 160
GitHub stars86 (best)7
MaintenanceLatest release18.0.1, 6 days ago (best)2.2.7, 3 weeks ago
Major versions in 12 months82 (best)
Contributors12 (best)1
Publisheralexander-kirsch.comaslamambiloly.2bd.net
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoYes
KindPure DartPure Dart
Code generationYesYes
Direct dependencies51 (best)
LicenseMITMIT
Setup effortMediumLow
JudgementStrengths
  • Zero runtime cost, compile‑time safety
  • Supports Dart records and advanced options like immutable fields
  • No extra dependencies beyond build_runner
  • Removes enum identifier strings entirely from compiled AOT binaries.
  • Zero runtime overhead using extension types over primitive integers.
  • Compile-time exhaustiveness guarantees and safe parsing.
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 build_runner and code generation steps.
  • Enums must be defined privately with special annotations.
WarningsNoneNone
copy_with_extension_gen vs stealth_enum: which Flutter package should you use? | pubscout