Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeenum_to_string

Convert enum values to readable strings and back, with camelCase and custom mappings.

pub.devRemove
validators2

String validation and sanitization for Dart.

pub.devRemove
ScoresHealth5983 (best)
Maintenance588 (best)
Quality9696
Popularity84 (best)50
Community4580 (best)
Compatibility100100
UsageDownloads (30 days)187k (best)78k
Likes331 (best)9
Pub points150 / 160150 / 160
GitHub stars85 (best)0
MaintenanceLatest release2.2.1, 2 years ago5.1.1, 3 weeks ago (best)
Major versions in 12 months00
Contributors12 (best)9
PublisherUnverifiedonepub.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies00
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Simple API, no dependencies
  • Supports custom mappings and camelCase conversion
  • Works with Dart 2.17+ enhanced enums
  • Fast and lightweight
  • No external dependencies, pure Dart.
  • Up-to-date regexes and edge‑case handling (e.g., email backtracking fix).
  • Supports Dart 3.x and null safety.
Weaknesses
  • No built‑in localization support
  • Limited to enums only
  • No code generation or compile‑time checks
  • Limited to string validation; no UI components.
  • No built‑in error message localization.
  • Not a form builder, just helper functions.
WarningsNoneNone
enum_to_string vs validators2: which Flutter package should you use? | pubscout