toIntOrNull method

int? toIntOrNull()

Convert to int (returns null if not a valid number)

Implementation

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