mirror of
https://github.com/hmalik144/easy_cc_flutter.git
synced 2026-10-30 07:46:18 +00:00
- Homescreen widget for android added
This commit is contained in:
1 parent
1100ce2ab8
commit
75bdcde364
16 files changed
+166
-134
No files matched your search
@@ -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