easy_breezy_validator

Creator: coderz1093

Last updated:

0 purchases

easy_breezy_validator Image
easy_breezy_validator Images

Languages

Categories

Add to Cart

Description:

easy breezy validator

a simple pure dart text validation to validate your needs
Features #

⚡️ Pure Dart: Build Flexible without any flutter code
🧷️ Documented: each rule have a code documentation

Usage #
Example 1
/// true or false
var isEmailValid = isEmail("[email protected]");
var yourTextField = TextFormField(
validator: isEmailValid ? null : "please enter a valid Email",
);
copied to clipboard
Example 2
/// true or false
var isMyFullNameValid = isFullName("Muhammed Khaled");
String? gimmeMyNameOrNull(){
if(isMyFullNameValid){
return "Muhammed Khaled";
}else{
return null;
}
}
copied to clipboard
Current Rules #
var isEmailValid = isEmail("[email protected]");
var isFullNameValid = isFullName("Muhammed Khaled");
var isNameValid = isName("Muhammed");
var isDateOfBirthValid = isDateOfBirth("1999/01/11");
var isEgyptianPhoneValid = isDateOfBirth("01112345678");
copied to clipboard
Additional information #
You can suggest any extra rules or you can contribute with me
just open an issue with your new rules, and Start Code Don't fongot to write tests

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.