tryToInt method

int? tryToInt()

Attempts toInt, returning null on failure.

Implementation

int? tryToInt() => tryToNum()?.toInt();