All Projects → pacifio → validated

pacifio / validated

Licence: BSD-2-Clause license
Ultimate dart / flutter string validators 💃💃

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to validated

stash
Key-value store abstraction with plain and cache driven semantics and a pluggable backend architecture.
Stars: ✭ 71 (+238.1%)
Mutual labels:  dart-library, dart-package
palace
server side framework for dart inspired by express.js
Stars: ✭ 32 (+52.38%)
Mutual labels:  dart-library, dart-package
Motion-Tab-Bar
A beautiful animated flutter widget package library. The tab bar will attempt to use your current theme out of the box, however you may want to theme it.
Stars: ✭ 237 (+1028.57%)
Mutual labels:  dart-library, dart-package
l
Cross-platform html/io [L]ogger with simple API.
Stars: ✭ 26 (+23.81%)
Mutual labels:  dart-library, dart-package
credit card validator
A Dart package that validates credit card numbers, expiration dates, and security codes (CVV/CVC) based on the type of credit card
Stars: ✭ 19 (-9.52%)
Mutual labels:  dart-library, dart-package
Getwidget
Most popular and easy to use open source UI library with 1000+ Widgets to build flutter app.
Stars: ✭ 2,555 (+12066.67%)
Mutual labels:  dart-library, dart-package
dartexif
Dart package to decode Exif data from tiff, jpeg and heic files
Stars: ✭ 16 (-23.81%)
Mutual labels:  dart-library, dart-package
material-color-utilities
Color libraries for Material You
Stars: ✭ 605 (+2780.95%)
Mutual labels:  dart-library, dart-package
crypton
A simple Dart library for asymmetric encryption and digital signatures
Stars: ✭ 25 (+19.05%)
Mutual labels:  dart-library, dart-package
Flogs
An Advanced Logging Framework develop in flutter that provides quick & simple logging solution.
Stars: ✭ 158 (+652.38%)
Mutual labels:  dart-library, dart-package
open route service
An encapsulation made around openrouteservice API for Dart and Flutter projects. Made for easy generation of Routes and Directions on Maps, Isochrones, Time-Distance Matrix, Pelias Geocoding, POIs, Elevation and routing Optimizations using their amazing API.
Stars: ✭ 20 (-4.76%)
Mutual labels:  dart-library, dart-package
dart-emoji
A light-weight Emoji 📦 for Dart & Flutter with all up-to-date emojis written in pure Dart 😄 . Made from 💯% ☕ with ❤️!
Stars: ✭ 16 (-23.81%)
Mutual labels:  dart-library, dart-package
flutter sliding tutorial
User onboarding library with smooth animation of objects and background colors
Stars: ✭ 127 (+504.76%)
Mutual labels:  dart-library, dart-package
bloc
A predictable state management library that helps implement the BLoC design pattern
Stars: ✭ 12 (-42.86%)
Mutual labels:  dart-library
formz
A unified form representation in Dart used at Very Good Ventures 🦄
Stars: ✭ 262 (+1147.62%)
Mutual labels:  dart-package
Bloc
A predictable state management library that helps implement the BLoC design pattern
Stars: ✭ 8,214 (+39014.29%)
Mutual labels:  dart-library
dart-tags
ID3 Tag parser written on the pure dart language.
Stars: ✭ 35 (+66.67%)
Mutual labels:  dart-library
http middleware
A middleware library for Dart's http library.
Stars: ✭ 38 (+80.95%)
Mutual labels:  dart-library
flutter facebook app events
Flutter Plugin for Facebook App Events
Stars: ✭ 88 (+319.05%)
Mutual labels:  dart-package
text-style-editor
Text style editor widget for flutter
Stars: ✭ 25 (+19.05%)
Mutual labels:  dart-package

Validated

Build Status The ultimate dart + flutter string validators . This library 45 validators plus sanitizers . Check out the docs for all functions . You will find all the functions under validated package

Example

Validators

Example of some validators .. go to lib/src/ to get the full list of validators or check out the docs for more info

import 'package:validated/validated.dart' as validate;

void main() {
  print(validate.isBoolean('a')); // false
  print(validate.isEmail("[email protected]")); // true
  print(validate.isAscii("ABCDEF")); // false
  print(validate.isSameType('String', false)); // false
  print(validate.isUpperCase("ABCD")); // true
  print(validate.isCapitalized("Abcs")); // true
  print(validate.contains("Dart is nice", "nice")); // true
  print(validate.isCurrency("\$")); // false
  print(validate.isURL('https://www.google.com')); // true
  print(validate.isEmoji("😀")); // true
  print(validate.isEmoji("some random text")); // false
}

Sanitizers

Example of some sanitizers

Credit

import 'package:validated/validated.dart' as validate;

validate.toBoolean(str);
validate.toDate(str);
validate.toDouble(str);
validate.toFloat(str);
validate.toInt(str);
validate.toString(input);

Credits

1 . validator.js
2 . dart-validator
3 . email-validator
4. emoji-regex

TODO

  • Ported validator.js to dart
  • emoji validator
  • supports dart 2+ versions
  • tested for flutter
  • added docs
  • Null safety
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].