validated
2.0.0, released 5 years ago by an unverified publisher
String validation and sanitization library for Dart and Flutter with 45+ validators.
WASM-ready
What it does
Provides over 45 functions to validate strings such as emails, URLs, IP addresses, JSON, and emojis. Also includes a set of sanitizers to convert strings to booleans, dates, ints, and floats.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to validate standard string formats like email addresses or URLs.
- You want to sanitize and convert string inputs into other types like numbers or dates.
Skip it when
- You are looking for complex Flutter form widget controllers or built-in FormState wrappers.
Strengths
- Offers a large variety of built-in validators and sanitizers.
- Supports null safety and cross-platform usage.
Weaknesses
- Limited documentation inside the README regarding the full list of functions.
- No built-in UI components or widget integrations for forms.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:validated/validated.dart' as validate;
void main() {
print(validate.isEmail("adib@gmail.com")); // true
print(validate.isURL('https://www.google.com')); // true
}Alternatives
Packages that do the same job and could replace validated.
- flutter_validators
String validators, sanitizers, and Flutter form validation helpers
73Compare - validators
String validation and sanitization library for Dart
50Compare