diff --git a/README.md b/README.md index 37a25067..79fb1f53 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ Comment on Issue or Pull Request, asking @all-contributors to add a contributor: Gregor Weber
Gregor Weber

💻 Ooi Han Yi
Ooi Han Yi

💻 Jimmy Forrester-Fellowes
Jimmy Forrester-Fellowes

💻 - Md. Sabik Alam Rahat
Md. Sabik Alam Rahat

💻 + Md. Sabik Alam Rahat
Md. Sabik Alam Rahat

💻 📖 diff --git a/lib/countries.dart b/lib/countries.dart index 43d0ce45..e95f6d46 100644 --- a/lib/countries.dart +++ b/lib/countries.dart @@ -8048,9 +8048,7 @@ class Country { required this.currencySymbol, }); - String get fullCountryCode { - return dialCode + regionCode; - } + String get fullCountryCode => dialCode + regionCode; String get displayCC { if (regionCode != "") { @@ -8059,7 +8057,7 @@ class Country { return dialCode; } - String localizedName(String languageCode) { - return nameTranslations[languageCode] ?? name; - } + String localizedName(String languageCode) => nameTranslations[languageCode] ?? name; + + String get dialCodeWithPlus => "+$dialCode"; }