parseInt static method

Int64 parseInt(
  1. String source
)

Parses source as a decimal numeral.

Returns an Int64 with the numerical value of source. If the numerical value of source does not fit in a signed 64 bit integer, the numerical value is truncated to the lowest 64 bits of the value's binary representation, interpreted as a 64-bit two's complement integer.

The source string must contain a sequence of digits (0-9), possibly prefixed by a - sign.

Throws a FormatException if the input is not a valid decimal integer numeral.

Implementation

static Int64 parseInt(String source) => _parseRadix(source, 10, true)!;