Last updated:
0 purchases
jk validator
JK Validator #
JK Validator is a Dart package for data validation in Flutter applications. It provides a set of utility functions to validate various types of data, such as numbers, URLs, email addresses, and more.
Functions #
isNum , isImageUrl , isEmpty , hasLength , isNull , isNullOrBlank ,isBlank ,isNumericOnly ,isAlphabetOnly,hasCapitalletter ,isBool ,isVideo ,isImage,isAudio,isPPT,isWord ,isExcel ,isAPK,isPDF,isTxt,isChm,isVector,isHTML,isUsername,isURL,isEmail,isPhoneNumber,isDateTime,isMD5,isSHA1,isSHA256,isSSN,isBinary,isIPv4,isIPv6,isHexadecimal,isPalindrom,isOneAKind,isPassport,isCurrency,isLengthGreaterThan,isLengthGreaterOrEqual,isLengthLessThan,isLengthLessOrEqual,isLengthEqualTo,capitalize,capitalizeFirst,removeAllWhitespace , isEqual , etc.
Installation #
Add the following line to your pubspec.yaml file:
dependencies:
jk_validator: ^0.0.1
copied to clipboard
Then, run flutter pub get to fetch the package.
Usage #
Import the package in your Dart file:
import 'package:jk_validator/jk_validator.dart';
copied to clipboard
Example Usage #
void main() {
String email = '[email protected]';
if (isEmail(email)) {
print('Valid email!');
} else {
print('Invalid email!');
}
}
copied to clipboard
Please refer to the API documentation for a complete list of available validation functions and their usage examples.
Features #
Validate various types of data, including numbers, URLs, email addresses, and more.
Utility functions for validating specific data formats, such as images, audio files, and documents.
Functions to check the length, presence, or specific properties of a value.
Comparison functions to compare values.
Helper functions for string manipulation, such as capitalization and whitespace removal.
Contributing #
Contributions are welcome! If you encounter any issues or have suggestions for improvement, please open an issue on the GitHub repository.
License #
This project is licensed under the MIT License.
Credits #
JK Validator is developed and maintained by kawan pshtiwan And jaza yahya .
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.