Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributepigeon

Type-safe code generator for communication between Flutter and host platforms.

pub.devRemove
sum_types

A code generator that adds algebraic sum‑type support to Dart.

pub.devRemove
ScoresHealth90 (best)44
Maintenance99 (best)3
Quality88 (best)76
Popularity88 (best)47
Community80 (best)23
Compatibility85100 (best)
UsageDownloads (30 days)925k (best)76k
Likes1.3k (best)14
Pub points160 / 160 (best)140 / 160
GitHub stars5.3k (best)40
MaintenanceLatest release30.0.4, 4 days ago (best)0.4.0, 2 years ago
Major versions in 12 months40 (best)
Contributors100+ (best)4
Publisherflutter.devUnverified
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies101 (best)
LicenseBSD-3-CLAUSEMIT
Setup effortMediumMedium
JudgementStrengths
  • Supports multiple host targets: Android (Kotlin/Java), iOS/macOS (Swift/Obj-C), Windows (C++), and Linux (GObject).
  • Offers both standard platform channels and high-performance native interop (direct Dart FFI and JNI).
  • Generates typed data models, error handling, asynchronous wrappers, and event channels.
  • Generates boiler‑plate‑free sum‑type classes.
  • Supports const constructors, generic and recursive types.
  • Provides exhaustive `iswitch` pattern matching.
Weaknesses
  • Frequent breaking changes in generated code across package updates make it unsuitable for public API exposure.
  • Native interop mode is complex to set up and has preview limitations regarding multi-engine routing.
  • Requires build_runner and the generator to run.
  • Only works with Dart SDK >=3.0.0.
  • Limited to sum‑type use‑cases; not a general utility library.
WarningsNoneNone
pigeon vs sum_types: which Flutter package should you use? | pubscout