nigerian_phone_number_validator 0.0.1 copy "nigerian_phone_number_validator: ^0.0.1" to clipboard
nigerian_phone_number_validator: ^0.0.1 copied to clipboard

Validate nigerian phone numbers

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

Usage #

TextFormField(
  validator: NigerianPhoneNumberValidator.validate,
),

Alternatively, you can set your own error message.

TextFormField(
  validator: (value) {
    return NigerianPhoneNumberValidator.validate(
      value,
      'Please use a valid phone number',
    );
  },
),

Additional information #

Contributions and suggestions are welcome. Feel free to send a PR for additional features

3
likes
140
pub points
9%
popularity

Publisher

unverified uploader

Validate nigerian phone numbers

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on nigerian_phone_number_validator