get_country_code_by_name

Last updated:

0 purchases

get_country_code_by_name Image
get_country_code_by_name Images
Add to Cart

Description:

get country code by 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
copied to clipboard
Install the package by running:
flutter pub get
copied to clipboard
Import the package in your Dart code:
import 'package:get_country_code_by_name/get_country_code_by_name.dart';
copied to clipboard
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
copied to clipboard
Retrieving Country Name #
To retrieve the country name for a given country code:
var resolver = CountryCodeResolver();
print(resolver.getCountryName('eg')); // Output: egypt
copied to clipboard
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.

GitHub: mohamedhekal
Email: [email protected]
Whatsapp: Mohamed Hekal

copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.