Skip to content

Commit

Permalink
dialCodeWithPlus added
Browse files Browse the repository at this point in the history
  • Loading branch information
sabikrahat committed Jul 30, 2024
1 parent 5ee043a commit 314c428
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Comment on Issue or Pull Request, asking @all-contributors to add a contributor:
<td align="center" valign="top" width="14.28%"><a href="https://github.com/The-Redhat"><img src="https://avatars.githubusercontent.com/u/33162310?v=4?s=100" width="100px;" alt="Gregor Weber"/><br /><sub><b>Gregor Weber</b></sub></a><br /><a href="https://github.com/vanshg395/intl_phone_field/commits?author=The-Redhat" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://beacons.ai/hanyi00i"><img src="https://avatars.githubusercontent.com/u/92980326?v=4?s=100" width="100px;" alt="Ooi Han Yi"/><br /><sub><b>Ooi Han Yi</b></sub></a><br /><a href="https://github.com/vanshg395/intl_phone_field/commits?author=hanyi00i" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://www.jimmyff.co.uk"><img src="https://avatars.githubusercontent.com/u/298850?v=4?s=100" width="100px;" alt="Jimmy Forrester-Fellowes"/><br /><sub><b>Jimmy Forrester-Fellowes</b></sub></a><br /><a href="https://github.com/vanshg395/intl_phone_field/commits?author=jimmyff" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://sabikrahat.github.io/"><img src="https://avatars.githubusercontent.com/u/49031412?v=4" width="100px;" alt="Md. Sabik Alam Rahat"/><br /><sub><b>Md. Sabik Alam Rahat</b></sub></a><br /><a href="https://github.com/vanshg395/intl_phone_field/commits?author=sabikrahat" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://sabikrahat.github.io/"><img src="https://avatars.githubusercontent.com/u/49031412?v=4" width="100px;" alt="Md. Sabik Alam Rahat"/><br /><sub><b>Md. Sabik Alam Rahat</b></sub></a><br /><a href="https://github.com/vanshg395/intl_phone_field/commits?author=sabikrahat" title="Code">💻</a> <a href="https://github.com/vanshg395/intl_phone_field/commits?author=sabikrahat" title="Documentation">📖</a></td>
</tr>
</tbody>
</table>
Expand Down
10 changes: 4 additions & 6 deletions lib/countries.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "") {
Expand All @@ -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";
}

0 comments on commit 314c428

Please sign in to comment.