Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributejson_annotation

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

pub.devRemove
stealth_enum_generator

Code generator that transforms private enums into obfuscated extension types.

pub.devRemove
ScoresHealth84 (best)70
Maintenance7090 (best)
Quality8194 (best)
Popularity97 (best)25
Community80 (best)41
Compatibility100 (best)85
UsageDownloads (30 days)16M (best)1.5k
Likes1.3k (best)15
Pub points150 / 160160 / 160 (best)
GitHub stars1.6k (best)7
MaintenanceLatest release4.12.0, 6 months ago2.2.7, 3 weeks ago (best)
Major versions in 12 months0 (best)2
Contributors51 (best)1
Publishergoogle.devaslamambiloly.2bd.net
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesNo
KindPure DartPure Dart
Code generationNoYes
Direct dependencies1 (best)5
LicenseBSD-3-CLAUSEMIT
Setup effortLowLow
JudgementStrengths
  • Small, zero‑runtime‑overhead package.
  • Works with Dart 3 and newer SDKs.
  • Provides fine‑grained control via JsonKey options.
  • Zero-cost obfuscated extension types that remove AOT binary metadata.
  • Keyed HMAC-SHA256 derivation ensuring mathematical irreversibility.
  • Integrates seamlessly with SharedPartBuilder alongside other code generators.
Weaknesses
  • 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.
  • Requires build_runner and code generation setup.
  • Requires careful secret key management and build.yaml configuration.
WarningsNoneNone
json_annotation vs stealth_enum_generator: which Flutter package should you use? | pubscout