intl_country_data 1.2.1 copy "intl_country_data: ^1.2.1" to clipboard
intl_country_data: ^1.2.1 copied to clipboard

Dart package containing international country data.

example/example.dart

import 'package:intl_country_data/intl_country_data.dart';

void main() {
  // Load all countries
  final all = IntlCountryData.all();
  print('Loaded ${all.length} countries: ${all.map((e) => e.name).join(', ')}');

  // Load the UK
  final country = IntlCountryData.fromCountryCodeAlpha2('GB');
  print('Loaded ${country.name} ${country.flag}! '
      'Also known as: ${country.nameTranslations.values.join(', ')}');

  // Find matching countries for a given telephone number
  final matching = IntlCountryData.fromTelephoneNumber('+447777666555');
  print('Found ${matching.length} countries for this phone number: '
      '${matching.map((e) => e.name).join(',')}');
}
3
likes
0
points
1.24k
downloads

Publisher

verified publisherrocketware.co.uk

Weekly Downloads

Dart package containing international country data.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on intl_country_data