tryToInt method

int? tryToInt()

tries to convert string to int

Implementation

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