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
reflection_factory

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

pub.devRemove
ScoresHealth84 (best)68
Maintenance7082 (best)
Quality81100 (best)
Popularity97 (best)38
Community80 (best)6
Compatibility100100
UsageDownloads (30 days)16M (best)5.7k
Likes1.3k (best)18
Pub points150 / 160160 / 160 (best)
GitHub stars1.6k (best)20
MaintenanceLatest release4.12.0, 6 months ago2.13.0, 5 weeks ago (best)
Major versions in 12 months00
Contributors51 (best)1
Publishergoogle.devUnverified
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoYes
Direct dependencies1 (best)12
LicenseBSD-3-CLAUSEAPACHE-2.0
Setup effortLowLow
JudgementStrengths
  • Small, zero‑runtime‑overhead package.
  • Works with Dart 3 and newer SDKs.
  • Provides fine‑grained control via JsonKey options.
  • Works across all Dart platforms where native mirrors are unavailable.
  • Supports third-party classes through reflection bridges.
  • Provides class proxies for intercepting method calls.
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 maintaining a build_runner code generation step.
  • Requires proper part directives in files where reflection is enabled.
WarningsNoneNone
json_annotation vs reflection_factory: which Flutter package should you use? | pubscout