country_mobile_validator 0.2.0
country_mobile_validator: ^0.2.0 copied to clipboard
Validate mobile numbers per country using real length ranges (8-10, 10-11 digits), mobile-only detection, and a country_code_picker-friendly API.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add country_mobile_validatorWith Flutter:
$ flutter pub add country_mobile_validatorThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
country_mobile_validator: ^0.2.0Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:country_mobile_validator/country_mobile_validator.dart';