Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Macacoazul01 committed Feb 22, 2024
1 parent caa9447 commit 1e052fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/currency_textfield.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ class CurrencyTextFieldController extends TextEditingController {
text.replaceFirst(_symbolSeparator, '');

///return the number part of the controller as a String, formatted as a double (with `.` as decimal separator).
String get doubleTextWithoutCurrencySymbol =>
text.replaceFirst(_symbolSeparator, '').replaceAll(thousandSymbol, '').replaceFirst(decimalSymbol, '.');
String get doubleTextWithoutCurrencySymbol => text
.replaceFirst(_symbolSeparator, '')
.replaceAll(thousandSymbol, '')
.replaceFirst(decimalSymbol, '.');

CurrencyTextFieldController({
String currencySymbol = 'R\$',
Expand Down

0 comments on commit 1e052fe

Please sign in to comment.