| 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); | ||||
| } | } | ||||
| } | } |