Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributesource_gen

Source code generation builders and utilities for the Dart build system.

pub.devRemove
stealth_enum

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

pub.devRemove
ScoresHealth84 (best)72
Maintenance8690 (best)
Quality8194 (best)
Popularity87 (best)25
Community80 (best)41
Compatibility85100 (best)
UsageDownloads (30 days)7.6M (best)1.5k
Likes191 (best)15
Pub points150 / 160160 / 160 (best)
GitHub stars493 (best)7
MaintenanceLatest release4.3.1, 5 weeks ago2.2.7, 3 weeks ago (best)
Major versions in 12 months0 (best)2
Contributors48 (best)1
Publishertools.dart.devaslamambiloly.2bd.net
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoYes
KindPure DartPure Dart
Code generationYesYes
Direct dependencies91 (best)
LicenseBSD-3-CLAUSEMIT
Setup effortLowLow
JudgementStrengths
  • Exposes a developer-friendly API on top of lower-level analyzer and build packages
  • Supports multiple code generators integrating seamlessly in the same project via shared part builders
  • 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 understanding of the Dart build system and analyzer APIs
  • Requires build_runner and code generation steps.
  • Enums must be defined privately with special annotations.
WarningsNoneNone
source_gen vs stealth_enum: which Flutter package should you use? | pubscout