Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributemodel_generator

Automatically generate Dart models from YAML configuration files.

pub.devRemove
pubspec_extract

Extracts Dart pubspec.yaml file and generates pubspec.dart at build time

pub.devRemove
ScoresHealth4475 (best)
Maintenance185 (best)
Quality91100 (best)
Popularity1727 (best)
Community6363
Compatibility85100 (best)
UsageDownloads (30 days)9151.5k (best)
Likes1217 (best)
Pub points140 / 160160 / 160 (best)
GitHub stars11 (best)7
MaintenanceLatest release7.0.0, 3 years ago2.2.1, 4 weeks ago (best)
Major versions in 12 months00
Contributors55
Publishericapps.comnfet.net
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoYes
KindPure DartPure Dart
Code generationNoYes
Direct dependencies5 (best)7
LicenseMITAPACHE-2.0
Setup effortLowLow
JudgementStrengths
  • Supports inline type definitions, generics, enums with properties, and custom converters.
  • Can look up models from a single config file or an entire directory of YAML files.
  • Supports both command-line usage and build_runner integration
  • Highly configurable extraction of specific top-level keys
Weaknesses
  • Requires managing and writing model definitions in separate YAML files instead of native Dart code.
  • Breaking changes between major versions (such as v7.0.0) require updates to existing YAML configurations.
  • Requires regeneration when pubspec.yaml changes if not using build_runner
WarningsNoneNone
model_generator vs pubspec_extract: which Flutter package should you use? | pubscout