Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributevalidators

String validation and sanitization library for Dart

pub.devRemove
validators2

String validation and sanitization for Dart.

pub.devRemove
ScoresHealth5083 (best)
Maintenance088 (best)
Quality9196 (best)
Popularity86 (best)50
Community4580 (best)
Compatibility100100
UsageDownloads (30 days)148k (best)78k
Likes243 (best)9
Pub points140 / 160150 / 160 (best)
GitHub stars82 (best)0
MaintenanceLatest release3.0.0, 6 years ago5.1.1, 3 weeks ago (best)
Major versions in 12 months00
Contributors89 (best)
PublisherUnverifiedonepub.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies00
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Wide range of built‑in validators
  • Null safety support
  • No external dependencies
  • 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
  • Limited to string validation only
  • No UI components or form integration helpers
  • Limited to string validation; no UI components.
  • No built‑in error message localization.
  • Not a form builder, just helper functions.
WarningsNoneNone
validators vs validators2: which Flutter package should you use? | pubscout