Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributesanitize_filename

Sanitizes strings by removing or replacing characters illegal for filenames.

pub.devRemove
validators2

String validation and sanitization for Dart.

pub.devRemove
ScoresHealth3082 (best)
Maintenance087 (best)
Quality100 (best)96
Popularity2750 (best)
Community3580 (best)
Compatibility100100
UsageDownloads (30 days)5k78k (best)
Likes89 (best)
Pub points160 / 160 (best)150 / 160
GitHub stars5 (best)0
MaintenanceLatest release1.0.5, 4 years ago5.1.1, 3 weeks ago (best)
Major versions in 12 months00
Contributors09 (best)
Publishere-go-mobile.deonepub.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies00
LicenseLGPL-3.0MIT
Setup effortLowLow
JudgementStrengths
  • Zero dependencies
  • Works on all Dart platforms
  • Customizable replacement character
  • 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
  • Only handles character replacement, no path normalization
  • Limited configurability
  • Limited to string validation; no UI components.
  • No built‑in error message localization.
  • Not a form builder, just helper functions.
Warnings
  • File-level copyleft
  • Repository archived
None
sanitize_filename vs validators2: which Flutter package should you use? | pubscout