tryToInt method

int? tryToInt()

Returns the integer value of the number, or null if the number is null.

Implementation

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