Last updated:
0 purchases
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.