toIntOrNull method

int? toIntOrNull()

Converts this nullable num to an int, or returns null if null.

Implementation

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