nigerian_phone_number_validator

Last updated:

0 purchases

nigerian_phone_number_validator Image
nigerian_phone_number_validator Images
Add to Cart

Description:

nigerian phone number validator

Nigerian Phone Number Validator #
A light-weight package to validate Nigerian phone numbers.
Specifically, designed for validating phone number in a TextFormField widget.
Features #

Validate Nigerian phone numbers
Sanitise phone number to international format

Getting started #
Installing #
dependencies:
nigerian_phone_number_validator: ^0.0.1
copied to clipboard
Usage #
TextFormField(
validator: NigerianPhoneNumberValidator.validate,
),
copied to clipboard
Alternatively, you can set your own error message.
TextFormField(
validator: (value) {
return NigerianPhoneNumberValidator.validate(
value,
'Please use a valid phone number',
);
},
),
copied to clipboard
Additional information #
Contributions and suggestions are welcome. Feel free to send a PR for additional features

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.