intParseFunction function

ParseResult<int> intParseFunction(
  1. String string
)

Implementation

ParseResult<int> intParseFunction(String string) => ParseResult.fromNullable(
      int.tryParse(string),
      errorMessage: 'Invalid number format.',
    );