Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeanalyzer_buffer

Helper for code generators to write code with import prefixes and default values

pub.devRemove
build

Package for authoring build_runner compatible code generators.

pub.devRemove
ScoresHealth6587 (best)
Maintenance6390 (best)
Quality8193 (best)
Popularity5385 (best)
Community4680 (best)
Compatibility8585
UsageDownloads (30 days)1.4M8.1M (best)
Likes6102 (best)
Pub points150 / 160150 / 160
GitHub stars20871 (best)
MaintenanceLatest release0.3.4, 3 months ago5.0.0, 5 weeks ago (best)
Major versions in 12 months0 (best)1
Contributors2100+ (best)
Publisherdash-overflow.netdart.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationYesYes
Direct dependencies5 (best)6
LicenseMITBSD-3-CLAUSE
Setup effortLowMedium
JudgementStrengths
  • Supports import prefixes and automatic import insertion
  • Copies default values and constants preserving prefixes
  • Provides writeType and DartType.toCode for type conversion
  • Custom string interpolation for dynamic content
  • Provides the core underlying Builder interface used across the Dart build ecosystem.
  • Gives easy access to the analyzer for processing and resolving Dart source code.
Weaknesses
  • Only useful for code generation, not runtime
  • Depends on analyzer and source_gen, so not suitable for pure Dart projects
  • Requires understanding of analyzer APIs
  • Low-level compared to source_gen, requiring more manual handling of build steps.
  • Major version updates can introduce breaking changes for packages implementing BuildStep.
WarningsNoneNone
analyzer_buffer vs build: which Flutter package should you use? | pubscout