parseInputToDouble method
Parses the string into a double, converting ',' to '.' and removing spaces.
Throws FormatException if parsing fails.
Example: "1 234,56".parseInputToDouble() → 1234.56
Implementation
double parseInputToDouble() {
return double.parse(replaceAll(' ', '').replaceAll(',', '.'));
}