diff --git a/lib/src/core/extentions/monetary_extention.dart b/lib/src/core/extentions/monetary_extention.dart new file mode 100644 index 0000000..956c64e --- /dev/null +++ b/lib/src/core/extentions/monetary_extention.dart @@ -0,0 +1,7 @@ +extension StringExtension on String { + String convertCurrencyValues() { + String valueWithoutSymbol = replaceAll(',', '.').replaceAll('R\$', '').trim(); + return valueWithoutSymbol; + // return double.parse(valueWithoutSymbol); + } +}