get_country_code_by_name 0.0.8 copy "get_country_code_by_name: ^0.0.8" to clipboard
get_country_code_by_name: ^0.0.8 copied to clipboard

A Flutter package to retrieve country codes by passing the country name.

Sure, let's update the README.md file to reflect the new functionality added to the package. Here's an updated version of the README:

# get_country_code_by_name

A Flutter package to retrieve country codes and country names by passing either the country name or country code.

## Installation

Add `get_country_code_by_name` to your `pubspec.yaml` file:

```yaml
dependencies:
  flutter:
    sdk: flutter
  get_country_code_by_name: ^0.0.8

Install the package by running:

flutter pub get

Import the package in your Dart code:

import 'package:get_country_code_by_name/get_country_code_by_name.dart';

Usage #

You can use the CountryCodeResolver class to retrieve country codes and country names.

Retrieving Country Code #

To retrieve the country code for a given country name:

var resolver = CountryCodeResolver();
print(resolver.getCountryCode('egypt')); // Output: eg

Retrieving Country Name #

To retrieve the country name for a given country code:

var resolver = CountryCodeResolver();
print(resolver.getCountryName('eg')); // Output: egypt

Features #

  • Retrieve country codes by country name.
  • Retrieve country names by country code.

Issues and Feedback #

Please file any issues, feedback, or feature requests in the issue tracker.

License #

This project is licensed under the terms of the MIT license. See the LICENSE file for details.

About #

This Flutter package is developed and maintained by Mohamed Hekal.

2
likes
130
pub points
0%
popularity

Publisher

unverified uploader

A Flutter package to retrieve country codes by passing the country name.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on get_country_code_by_name