country_mobile_validator 0.1.0
country_mobile_validator: ^0.1.0 copied to clipboard
Validate mobile numbers per country with real length ranges (8-10, 10-11 digits...), mobile-only type detection, and country_code_picker-friendly API. Pure Dart, refreshable libphonenumber metadata.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart 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.1.0Alternatively, your editor might support dart 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';