body_validate

Creator: coderz1093

Last updated:

0 purchases

body_validate Image
body_validate Images

Languages

Categories

Add to Cart

Description:

body validate

form_validator #



Features #
TODO: You can easily use this pub and enhance your code quality and less improve your code

Zero dependency
Extensible
Well tested
Open source

Getting started #
TODO: List prerequisites and provide or point to information on how to
start using the package.
Installation #
Add body_validate as dependency to your flutter project by adding this lines to pubspec.yaml.
dependencies:
body_validate: "0.0.1"
copied to clipboard
Then run flutter pub get to install required dependencies.
Usage #
TODO: You check all below operations

isEmpty
isEmail
isMobile
isPassWord
isUrl
isListNotEmpty

NOTE:

isEmpty - You need to pass one textfiled into "ForeValidate" class

ForValidate(operation: CheckFiled.isEmpty,list: [],filed1: "Filed 1",filed2:"",warningTitle: "Your Title",warningMessage: "Your Warning Message"),
copied to clipboard

isEmail - You need to pass email into "ForeValidate" class in filed1

ForValidate(operation: CheckFiled.isEmail,list: [],filed1: "[email protected]",filed2:"",warningTitle: "Your Title",warningMessage: "Your Warning Message"),
copied to clipboard

isMobile - You need to pass mobile number into "ForeValidate" class in filed1

ForValidate(operation: CheckFiled.isMobile,list: [],filed1: "9687388107",filed2:"",warningTitle: "Your Title",warningMessage: "Your Warning Message"),
copied to clipboard

isPassWord - You need to pass password in filed1 and confirmpassword in filed2 into "ForeValidate" class

ForValidate(operation: CheckFiled.isPassWord,list: [],filed1: "trush@123",filed2:"trush@123",warningTitle: "Your Title",warningMessage: "Your Warning Message"),
copied to clipboard

isUrl - You need to pass URL into "ForeValidate" class in filed1

ForValidate(operation: CheckFiled.isUrl,list: [],filed1: "https://pub.dev/packages/body_validate/versions/0.0.1",filed2:"",warningTitle: "Your Title",warningMessage: "Your Warning Message"),
copied to clipboard

isList - You need to pass List in list section into ForeValidate" class

ForValidate(operation: CheckFiled.isList,list: ["1", "2"],filed1: "",filed2:"",warningTitle: "Your Title",warningMessage: "Your Warning Message"),
copied to clipboard
List<ForValidate> validateBodyList = [
ForValidate(operation: CheckFiled.isEmpty,list: [],filed1: "Filed 1",filed2:"",warningTitle: "Your Title",warningMessage: "Your Warning Message"),
ForValidate(operation: CheckFiled.isEmail,list: [],filed1: "[email protected]",filed2:"",warningTitle: "Your Title",warningMessage: "Your Warning Message"),
ForValidate(operation: CheckFiled.isMobile,list: [],filed1: "9687388107",filed2:"",warningTitle: "Your Title",warningMessage: "Your Warning Message"),
ForValidate(operation: CheckFiled.isPassWord,list: [],filed1: "trush@123",filed2:"trush@123",warningTitle: "Your Title",warningMessage: "Your Warning Message"),
ForValidate(operation: CheckFiled.isUrl,list: [],filed1: "https://pub.dev/packages/body_validate/versions/0.0.1",filed2:"",warningTitle: "Your Title",warningMessage: "Your Warning Message"),
ForValidate(operation: CheckFiled.isList,list: ["1", "2"],filed1: "",filed2:"",warningTitle: "Your Title",warningMessage: "Your Warning Message"),
];
final result = await FiledValidate().validateFileds(validateBodyList);
if(result){
//Do your task here
}
copied to clipboard
Developed by #
TRUSHAR MISTRY
GIT: Trushar88

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.