the_country_number 0.9.2+7 the_country_number: ^0.9.2+7 copied to clipboard
A small library for flutter written in pure dart (doesn't use libphonenumber) which parses a phone number or iso2 code of a country to give you some vitals about the country (if you need to skip null- [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add the_country_number
With Flutter:
$ flutter pub add the_country_number
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
the_country_number: ^0.9.2+7
Alternatively, 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:the_country_number/the_country_number.dart';