mirror of
https://github.com/hmalik144/easy_cc_flutter.git
synced 2025-12-10 03:05:34 +00:00
Project lint checked and step added to config.yml
This commit is contained in:
7
lib/Utils/currency_utils.dart
Normal file
7
lib/Utils/currency_utils.dart
Normal file
@@ -0,0 +1,7 @@
|
||||
extension CurrencyExtension on String {
|
||||
/// Convert currency string into currency code
|
||||
/// eg. "AUD - Australian Dollar" to "AUD"
|
||||
String getCurrencyCode(){
|
||||
return substring(0,3);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user