string_validator_extension

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

string validator extension

String Validator Extension #
Dart extension for string validation, especially from user input.
Demo #

Usage #
1. Add dependency to your package's pubspec.yaml file:
dependencies:
string_validator_extension: ^0.0.2 # change to latest version
copied to clipboard
2. Run from the command line:
$ pub get
copied to clipboard
Alternatively, your editor might support pub. Check the docs for your editor to learn more.
3. Import in your Dart code:
import 'package:string_validator_extension/extension.dart';
copied to clipboard
Usage #
Example how to use this, just added validation you want.
final isEmail = 'john@gmail.com'.isEmail();
final emailNotValid = 'john@gmail'.isEmail();
final isUrl = 'https://google.com'.isUrl();

print(isEmail); // true
print(emailNotValid); // false
print(isUrl); // true
copied to clipboard
Available Extension #
bool equals(comparison)
bool isEmail()
bool isURL()
bool validUsername()
bool isPhoneNumber()
bool isHexa()
bool isVector()
bool isImage()
bool isAudio()
bool isVideo()
bool isTxt()
bool isDoc()
bool isExcel()
bool isPpt()
bool isApk()
bool isPdf()
bool isHTML()
bool isBasicDateTime()
bool isBinary()
bool isMd5()
bool isSha1()
bool isSha256()
bool isIpv4()
bool isIpv5()
bool isPassportNumber()
bool isCurrency()
bool isNumericOnly()
bool isAplhabetOnly()
copied to clipboard
Contribution #
If you wish to contribute, fork this repository and add your extension. Create a PR & i'll check it.

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.