decimalParseFunction function

ParseResult<Decimal> decimalParseFunction(
  1. String source
)

Implementation

ParseResult<Decimal> decimalParseFunction(String source) =>
    ParseResult.fromNullable(
      tryParseDecimal(source),
      errorMessage: 'Invalid number format',
    );