tryInt abstract method

int? tryInt()

Return the next value if it is an integer.

If the next value is a valid JSON number with no decimal point or exponent, it is returned as an int (as if parsed by int.parse). Returns null if the next value is not an integer.

Implementation

int? tryInt();