doubleParseFunction function
Implementation
ParseResult<double> doubleParseFunction(String string) =>
ParseResult.fromNullable(
double.tryParse(
string.replaceAll(',', '.'),
),
errorMessage: 'Invalid number format.',
);