Browse Source

Update formatter.dart

smf
daivph 5 years ago
parent
commit
357a00dfcb
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      lib/utils/formatter.dart

+ 0
- 2
lib/utils/formatter.dart View File

extension DoubleParsing on String { extension DoubleParsing on String {
double parseDoubleThousand() { double parseDoubleThousand() {
var newValue = this.replaceAll(",", ""); var newValue = this.replaceAll(",", "");
// var changeToServerFormat = newValue.replaceAll(".", ",");
return double.tryParse(newValue); return double.tryParse(newValue);
} }
} }
extension IntParsing on String { extension IntParsing on String {
int parseIntThousand() { int parseIntThousand() {
var newValue = this.replaceAll(",", ""); var newValue = this.replaceAll(",", "");
// var changeToServerFormat = newValue.replaceAll(".", ",");
return int.tryParse(newValue); return int.tryParse(newValue);
} }
} }

Loading…
Cancel
Save