doubleParseFunction function

ParseResult<double> doubleParseFunction(
  1. String string
)

Implementation

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