Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributereflection_factory

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

pub.devRemove
source_gen

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

pub.devRemove
ScoresHealth6884 (best)
Maintenance8286 (best)
Quality100 (best)81
Popularity3887 (best)
Community680 (best)
Compatibility100 (best)85
UsageDownloads (30 days)5.7k7.6M (best)
Likes18191 (best)
Pub points160 / 160 (best)150 / 160
GitHub stars20493 (best)
MaintenanceLatest release2.13.0, 5 weeks ago (best)4.3.1, 5 weeks ago
Major versions in 12 months00
Contributors148 (best)
PublisherUnverifiedtools.dart.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesNo
KindPure DartPure Dart
Code generationYesYes
Direct dependencies129 (best)
LicenseAPACHE-2.0BSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Works across all Dart platforms where native mirrors are unavailable.
  • Supports third-party classes through reflection bridges.
  • Provides class proxies for intercepting method calls.
  • 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
Weaknesses
  • Requires maintaining a build_runner code generation step.
  • Requires proper part directives in files where reflection is enabled.
  • Requires understanding of the Dart build system and analyzer APIs
WarningsNoneNone
reflection_factory vs source_gen: which Flutter package should you use? | pubscout