mirror of
https://github.com/hmalik144/easy_cc_flutter.git
synced 2025-12-10 03:05:34 +00:00
- Homescreen widget for android added
This commit is contained in:
@@ -2,6 +2,9 @@ extension CurrencyExtension on String {
|
||||
/// Convert currency string into currency code
|
||||
/// eg. "AUD - Australian Dollar" to "AUD"
|
||||
String getCurrencyCode(){
|
||||
if (length == 3) {
|
||||
return this;
|
||||
}
|
||||
return substring(0,3);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user